contract template endpoint

This commit is contained in:
glovetleong
2021-06-28 15:31:10 +08:00
parent 0be9350b30
commit ebdf9d57cc
16 changed files with 566 additions and 112 deletions
-42
View File
@@ -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;
// }
}
/**