mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-23 06:14:05 +00:00
contract template endpoint
This commit is contained in:
@@ -60,48 +60,6 @@ class LoginRule implements Rule
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// if ($this->type == 'social') {
|
||||
// $social_media_type_id = $value;
|
||||
// $provider_id = $this->password;
|
||||
// $data = UserSocialAccount::
|
||||
// where('social_media_type_id', $social_media_type_id)
|
||||
// ->where('provider_id', $provider_id)
|
||||
// ->whereHas('user', function($q) {
|
||||
// $q->whereIn('status', [1]);
|
||||
// })
|
||||
// ->count();
|
||||
|
||||
// if (!$data) {
|
||||
// return false;
|
||||
// }
|
||||
// return true;
|
||||
// }
|
||||
|
||||
// if ($this->type == 'totp') {
|
||||
// $social_media_type_id = $value;
|
||||
// $provider_id = $this->password;
|
||||
// $data = UserSocialAccount::
|
||||
// where('social_media_type_id', $social_media_type_id)
|
||||
// ->where('provider_id', $provider_id)
|
||||
// ->count();
|
||||
// if (!$data) {
|
||||
// return false;
|
||||
// }
|
||||
// $totp = new TOTP(
|
||||
// $social_media_type_id . $provider_id,
|
||||
// env('TOTP_SECRET'),
|
||||
// 100,
|
||||
// 'sha512',
|
||||
// 8
|
||||
// );
|
||||
|
||||
// if (!$totp->verify($this->totp)) {
|
||||
// return false;
|
||||
// }
|
||||
// return true;
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user