Feature: Creating Privacy Basics
This commit is contained in:
1 parent
e31de1b4e3
commit
9f540cbaa4
38 files changed
+1969
-3
No files matched your search
@@ -2,7 +2,9 @@
|
||||
|
||||
namespace Modules\Core\Auth\Services;
|
||||
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Modules\Core\Auth\Events\UserAuthenticated;
|
||||
use Modules\Core\Auth\Mail\UserOtpMail;
|
||||
|
||||
class UserOtpService
|
||||
@@ -43,6 +45,8 @@ class UserOtpService
|
||||
$user->otp_expires_at = null;
|
||||
$user->save();
|
||||
|
||||
Event::dispatch(new UserAuthenticated($user));
|
||||
|
||||
return $user;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user