you don't need a confirmation if it's ok

This commit is contained in:
flash 2016-09-10 01:10:06 +02:00
parent 0a7ef4f87a
commit d3b8612a65
2 changed files with 8 additions and 9 deletions

View file

@ -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'));

View file

@ -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();