you don't need a confirmation if it's ok
This commit is contained in:
parent
0a7ef4f87a
commit
d3b8612a65
2 changed files with 8 additions and 9 deletions
|
@ -81,9 +81,8 @@ class AccountController extends Controller
|
|||
]);
|
||||
}
|
||||
|
||||
$message = "Updated your profile!";
|
||||
|
||||
return view('global/information', compact('message', 'redirect'));
|
||||
header("Location: {$redirect}");
|
||||
return;
|
||||
}
|
||||
|
||||
return view('settings/account/profile');
|
||||
|
@ -214,8 +213,8 @@ class AccountController extends Controller
|
|||
$user->setPassword($password);
|
||||
}
|
||||
|
||||
$message = "Saved!";
|
||||
return view('global/information', compact('redirect', 'message'));
|
||||
header("Location: {$redirect}");
|
||||
return;
|
||||
}
|
||||
|
||||
return view('settings/account/details', compact(
|
||||
|
@ -275,8 +274,8 @@ class AccountController extends Controller
|
|||
|
||||
CurrentSession::$user->setMainRank($rank);
|
||||
|
||||
$message = "Changed your main rank!";
|
||||
return view('global/information', compact('redirect', 'message'));
|
||||
header("Location: {$redirect}");
|
||||
return;
|
||||
}
|
||||
|
||||
return view('settings/account/ranks', compact('locked'));
|
||||
|
|
|
@ -55,8 +55,8 @@ class AdvancedController extends Controller
|
|||
// Delete it
|
||||
$session->delete();
|
||||
|
||||
$message = "Deleted the session!";
|
||||
return view('global/information', compact('message', 'redirect'));
|
||||
header("Location: {$redirect}");
|
||||
return;
|
||||
}
|
||||
|
||||
$sessions = CurrentSession::$user->sessions();
|
||||
|
|
Reference in a new issue