mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Put the 'remember_token' column as null in the users table
This commit is contained in:
parent
548b172744
commit
5b2a5ff124
|
@ -1230,6 +1230,7 @@ class SettingsController extends Controller
|
||||||
if (is_file($file))
|
if (is_file($file))
|
||||||
unlink($file);
|
unlink($file);
|
||||||
}
|
}
|
||||||
|
DB::table('users')->update(['remember_token' => null]);
|
||||||
\Auth::logout();
|
\Auth::logout();
|
||||||
|
|
||||||
return redirect()->route('login')->with('success', 'Your system has been restored. Please login again.');
|
return redirect()->route('login')->with('success', 'Your system has been restored. Please login again.');
|
||||||
|
|
Loading…
Reference in a new issue