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!";
|
header("Location: {$redirect}");
|
||||||
|
return;
|
||||||
return view('global/information', compact('message', 'redirect'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('settings/account/profile');
|
return view('settings/account/profile');
|
||||||
|
@ -214,8 +213,8 @@ class AccountController extends Controller
|
||||||
$user->setPassword($password);
|
$user->setPassword($password);
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = "Saved!";
|
header("Location: {$redirect}");
|
||||||
return view('global/information', compact('redirect', 'message'));
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('settings/account/details', compact(
|
return view('settings/account/details', compact(
|
||||||
|
@ -275,8 +274,8 @@ class AccountController extends Controller
|
||||||
|
|
||||||
CurrentSession::$user->setMainRank($rank);
|
CurrentSession::$user->setMainRank($rank);
|
||||||
|
|
||||||
$message = "Changed your main rank!";
|
header("Location: {$redirect}");
|
||||||
return view('global/information', compact('redirect', 'message'));
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('settings/account/ranks', compact('locked'));
|
return view('settings/account/ranks', compact('locked'));
|
||||||
|
|
|
@ -55,8 +55,8 @@ class AdvancedController extends Controller
|
||||||
// Delete it
|
// Delete it
|
||||||
$session->delete();
|
$session->delete();
|
||||||
|
|
||||||
$message = "Deleted the session!";
|
header("Location: {$redirect}");
|
||||||
return view('global/information', compact('message', 'redirect'));
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sessions = CurrentSession::$user->sessions();
|
$sessions = CurrentSession::$user->sessions();
|
||||||
|
|
Reference in a new issue