auth email api

This commit is contained in:
2024-12-09 14:45:44 +03:00
parent 62ed358a4b
commit cfbcb3609f
6 changed files with 76 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class SecureService
{
$secretCode = SecretCode::where('user_id', $user->id)->first();
$secretCode->code = mt_rand(100000, 999999);
$secretCode->code_expires_at = date("Y-m-d H:i:s", strtotime("+5 minutes"));;
$secretCode->save();
}