Log the user out upon successful restore

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-11-15 19:40:01 -08:00
parent 8bf11e9417
commit 92b7aaf44b

View file

@ -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 {