mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 01:05:36 +00:00
Update RegisterController, fix CI bug
This commit is contained in:
parent
14ba350ba3
commit
5bcb43a673
1 changed files with 3 additions and 1 deletions
|
@ -55,6 +55,7 @@ class RegisterController extends Controller
|
|||
{
|
||||
if(config('database.default') == 'pgsql') {
|
||||
$data['username'] = strtolower($data['username']);
|
||||
$data['email'] = strtolower($data['email']);
|
||||
}
|
||||
|
||||
$this->validateUsername($data['username']);
|
||||
|
@ -111,8 +112,9 @@ class RegisterController extends Controller
|
|||
{
|
||||
if(config('database.default') == 'pgsql') {
|
||||
$data['username'] = strtolower($data['username']);
|
||||
$data['email'] = strtolower($data['email']);
|
||||
}
|
||||
|
||||
|
||||
return User::create([
|
||||
'name' => $data['name'],
|
||||
'username' => $data['username'],
|
||||
|
|
Loading…
Reference in a new issue