mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Repair user creation functionality
Repair functionality of the make user console command (pterodactyl:user) Fix up the user repository, was using the old $password instead of the changed format $data['password'] Change User model to allow root_admin to be a fillable item.
This commit is contained in:
@@ -67,7 +67,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
|
||||
*
|
||||
* @var [type]
|
||||
*/
|
||||
protected $fillable = ['username', 'email', 'name_first', 'name_last', 'password', 'language', 'use_totp', 'totp_secret', 'gravatar'];
|
||||
protected $fillable = ['username', 'email', 'name_first', 'name_last', 'password', 'language', 'use_totp', 'totp_secret', 'gravatar', 'root_admin'];
|
||||
|
||||
/**
|
||||
* Cast values to correct type.
|
||||
|
||||
Reference in New Issue
Block a user