mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-16 20:14:08 +00:00
Merge remote-tracking branch 'origin/next' into feat/railpack
This commit is contained in:
commit
0f904d792b
3 files changed
+74
-11
No files matched your search
@@ -47,14 +47,10 @@ class ForcePasswordReset extends Component
|
||||
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) {
|
||||
|
||||
Reference in new issue
Block a user