mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
@@ -2,11 +2,10 @@
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Models\Invitation;
|
||||
use App\Models\Settings;
|
||||
use App\Models\User;
|
||||
use App\Models\Settings;
|
||||
use App\Models\UserRole;
|
||||
use Blacklight\http\BasePage;
|
||||
use App\Models\Invitation;
|
||||
use Illuminate\Http\Request;
|
||||
use Blacklight\utility\Utility;
|
||||
use App\Http\Controllers\Controller;
|
||||
@@ -59,7 +58,7 @@ class RegisterController extends Controller
|
||||
'username' => 'required|string|max:255',
|
||||
'email' => 'required|string|email|max:255|unique:users',
|
||||
'password' => 'required|string|min:8|confirmed',
|
||||
'g-recaptcha-response' => 'required|captcha'
|
||||
'g-recaptcha-response' => 'required|captcha',
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -71,7 +70,6 @@ class RegisterController extends Controller
|
||||
*/
|
||||
protected function create(array $data): User
|
||||
{
|
||||
|
||||
return User::create([
|
||||
'username' => $data['username'],
|
||||
'email' => $data['email'],
|
||||
@@ -172,6 +170,7 @@ class RegisterController extends Controller
|
||||
|
||||
if ($ret->id > 0) {
|
||||
Auth::loginUsingId($ret->id);
|
||||
|
||||
return redirect()->intended($this->redirectPath());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user