mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-02 12:17:22 +01:00
Session now expires after password change
This commit is contained in:
parent
fe7b99eae8
commit
02f6200922
@ -930,6 +930,7 @@ class UserController extends Controller
|
||||
User::where('id', $userId)->update(['email' => $email]);
|
||||
} elseif ($request->password != '') {
|
||||
User::where('id', $userId)->update(['password' => $password]);
|
||||
Auth::logout();
|
||||
}
|
||||
return back();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user