Shift to consistent, fluent response chains

This commit is contained in:
Shift
2023-03-30 14:15:17 +00:00
parent 66c246852c
commit 1eeb9eaece
28 changed files with 69 additions and 69 deletions
+5 -5
View File
@@ -120,9 +120,9 @@ class ProfileController extends BasePageController
case 'newapikey':
User::updateRssKey($userid);
return redirect('profile');
return redirect()->to('profile');
case 'clearcookies':
return redirect('profileedit');
return redirect()->to('profileedit');
case 'submit':
$validator = Validator::make($request->all(), [
'email' => ['nullable', 'string', 'email', 'max:255', 'unique:users', 'indisposable'],
@@ -229,11 +229,11 @@ class ProfileController extends BasePageController
Auth::logout();
return redirect('login')->with('info', 'You will be able to login after you verify your new email address');
return redirect()->to('login')->with('info', 'You will be able to login after you verify your new email address');
}
}
return redirect('profile')->with('success', 'Profile changes saved');
return redirect()->to('profile')->with('success', 'Profile changes saved');
}
break;
@@ -279,7 +279,7 @@ class ProfileController extends BasePageController
}
if ($this->userdata->hasRole('Admin')) {
return redirect('profile');
return redirect()->to('profile');
}
return view('errors.badboy')->with('warning', 'Dont try to delete another user account!');