mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Fixedd unclosed brace
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
78d13871eb
commit
bb091760af
|
@ -1285,6 +1285,7 @@ class SettingsController extends Controller
|
||||||
\Log::debug($migrate_output);
|
\Log::debug($migrate_output);
|
||||||
|
|
||||||
$find_user = DB::table('users')->where('username', $user->username)->exists();
|
$find_user = DB::table('users')->where('username', $user->username)->exists();
|
||||||
|
|
||||||
if (!$find_user){
|
if (!$find_user){
|
||||||
\Log::warning('Attempting to restore user: ' . $user->username);
|
\Log::warning('Attempting to restore user: ' . $user->username);
|
||||||
$new_user = $user->replicate();
|
$new_user = $user->replicate();
|
||||||
|
@ -1300,8 +1301,7 @@ class SettingsController extends Controller
|
||||||
\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.');
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return redirect()->route('settings.backups.index')->with('error', trans('admin/settings/message.backup.file_not_found'));
|
return redirect()->route('settings.backups.index')->with('error', trans('admin/settings/message.backup.file_not_found'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue