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 {
|
try {
|
||||||
$this->rateLimit(10);
|
$this->rateLimit(10);
|
||||||
$this->validate();
|
$this->validate();
|
||||||
$firstLogin = auth()->user()->created_at == auth()->user()->updated_at;
|
|
||||||
auth()->user()->fill([
|
auth()->user()->fill([
|
||||||
'password' => Hash::make($this->password),
|
'password' => Hash::make($this->password),
|
||||||
'force_password_reset' => false,
|
'force_password_reset' => false,
|
||||||
])->save();
|
])->save();
|
||||||
if ($firstLogin) {
|
|
||||||
send_internal_notification('First login for '.auth()->user()->email);
|
|
||||||
}
|
|
||||||
|
|
||||||
return redirect()->route('dashboard');
|
return redirect()->route('dashboard');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue