mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Log the user out upon successful restore
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8bf11e9417
commit
92b7aaf44b
|
@ -1218,7 +1218,8 @@ class SettingsController extends Controller
|
||||||
|
|
||||||
// If it's greater than 300, it probably worked
|
// If it's greater than 300, it probably worked
|
||||||
if (strlen($output) > 300) {
|
if (strlen($output) > 300) {
|
||||||
return redirect()->route('settings.backups.index')->with('success', 'Your system has been restored.');
|
\Auth::logout();
|
||||||
|
return redirect()->route('login')->with('success', 'Your system has been restored. Please login again.');
|
||||||
} else {
|
} else {
|
||||||
return redirect()->route('settings.backups.index')->with('error', $output);
|
return redirect()->route('settings.backups.index')->with('error', $output);
|
||||||
|
|
||||||
|
@ -1231,7 +1232,7 @@ class SettingsController extends Controller
|
||||||
|
|
||||||
|
|
||||||
// log the user out
|
// log the user out
|
||||||
// \Auth::logout();
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue