mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 06:43:57 +08:00
Merge pull request #418 from Luceos/registration_fix
call to $this-> assertValidPassword from static context
This commit is contained in:
commit
93b6f11484
|
@ -150,7 +150,7 @@ class User extends Model
|
|||
{
|
||||
$user = new static;
|
||||
|
||||
$this->assertValidPassword($password);
|
||||
$user->assertValidPassword($password);
|
||||
|
||||
$user->username = $username;
|
||||
$user->email = $email;
|
||||
|
|
Loading…
Reference in New Issue
Block a user