mirror of
https://github.com/flarum/framework.git
synced 2025-06-07 00:44:34 +08:00
call to $this-> assertValidPassword from static context
This commit is contained in:
@ -150,7 +150,7 @@ class User extends Model
|
|||||||
{
|
{
|
||||||
$user = new static;
|
$user = new static;
|
||||||
|
|
||||||
$this->assertValidPassword($password);
|
$user->assertValidPassword($password);
|
||||||
|
|
||||||
$user->username = $username;
|
$user->username = $username;
|
||||||
$user->email = $email;
|
$user->email = $email;
|
||||||
|
Reference in New Issue
Block a user