mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Shift to consistent, fluent response chains
This commit is contained in:
@@ -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!');
|
||||
|
||||
Reference in New Issue
Block a user