fix(auth): remove first login notification on password reset
This commit is contained in:
parent
16668d8fb1
commit
c33364db71
1 changed files with 0 additions and 4 deletions
|
|
@ -47,14 +47,10 @@ public function submit()
|
|||
try {
|
||||
$this->rateLimit(10);
|
||||
$this->validate();
|
||||
$firstLogin = auth()->user()->created_at == auth()->user()->updated_at;
|
||||
auth()->user()->fill([
|
||||
'password' => Hash::make($this->password),
|
||||
'force_password_reset' => false,
|
||||
])->save();
|
||||
if ($firstLogin) {
|
||||
send_internal_notification('First login for '.auth()->user()->email);
|
||||
}
|
||||
|
||||
return redirect()->route('dashboard');
|
||||
} catch (\Throwable $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue