mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-02 20:27:05 +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]);
|
User::where('id', $userId)->update(['email' => $email]);
|
||||||
} elseif ($request->password != '') {
|
} elseif ($request->password != '') {
|
||||||
User::where('id', $userId)->update(['password' => $password]);
|
User::where('id', $userId)->update(['password' => $password]);
|
||||||
|
Auth::logout();
|
||||||
}
|
}
|
||||||
return back();
|
return back();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user