mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Update routes, fix user verification
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2018-06-20 DariusIII
|
||||
* Chg: Update routes, fix user verification
|
||||
* Chg: Add isVerified middleware to routes
|
||||
* Chg: Add user verification on registration
|
||||
* Chg: Add check if rating is set in Movie class updateMovieInfo function
|
||||
|
||||
@@ -174,13 +174,9 @@ class RegisterController extends Controller
|
||||
|
||||
UserVerification::send($user, 'User verification required');
|
||||
|
||||
if ($user->id > 0) {
|
||||
Auth::loginUsingId($user->id);
|
||||
User::updateSiteAccessed(Auth::id(), (int) Settings::settingValue('..storeuserips') === 1 ? $request->getClientIp() : '');
|
||||
return $this->registered($request, $user)
|
||||
?: redirect($this->redirectPath());
|
||||
|
||||
return $this->registered($request, $user)
|
||||
?: redirect($this->redirectPath());
|
||||
}
|
||||
break;
|
||||
case 'view': {
|
||||
$inviteCode = $request->input('invitecode') ?? null;
|
||||
|
||||
@@ -19,7 +19,7 @@ return [
|
||||
| Supported: "default", "markdown"
|
||||
|
|
||||
*/
|
||||
'type' => 'default',
|
||||
'type' => 'markdown',
|
||||
|
||||
/*
|
||||
|-----------------------------------------------------------------------
|
||||
|
||||
+7
-6
@@ -15,19 +15,20 @@ Route::get('/', 'ContentController@show');
|
||||
|
||||
Auth::routes();
|
||||
|
||||
Route::get('login', 'Auth\LoginController@showLoginForm');
|
||||
Route::post('login', 'Auth\LoginController@login')->name('login');
|
||||
|
||||
Route::get('register', 'Auth\RegisterController@showRegistrationForm');
|
||||
Route::post('register', 'Auth\RegisterController@register');
|
||||
|
||||
Route::get('forgottenpassword', 'Auth\ForgotPasswordController@showLinkRequestForm');
|
||||
Route::post('forgottenpassword', 'Auth\ForgotPasswordController@showLinkRequestForm');
|
||||
|
||||
Route::get('resetpassword', 'Auth\ResetPasswordController@reset');
|
||||
Route::post('resetpassword', 'Auth\ResetPasswordController@reset');
|
||||
|
||||
Route::group(['middleware' => ['isVerified']], function () {
|
||||
|
||||
Route::get('login', 'Auth\LoginController@showLoginForm');
|
||||
Route::post('login', 'Auth\LoginController@login')->name('login');
|
||||
|
||||
Route::get('resetpassword', 'Auth\ResetPasswordController@reset');
|
||||
Route::post('resetpassword', 'Auth\ResetPasswordController@reset');
|
||||
|
||||
Route::get('profile', 'ProfileController@show');
|
||||
|
||||
Route::prefix('browse')->group(function () {
|
||||
|
||||
Reference in New Issue
Block a user