1
0
Fork 1
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:
Daniel Supernault 2020-02-16 23:26:49 -07:00
parent 14ba350ba3
commit 5bcb43a673
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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'],