1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 18:21:33 +02:00

Merge pull request #418 from Luceos/registration_fix

call to $this-> assertValidPassword from static context
This commit is contained in:
Toby Zerner
2015-09-04 10:46:35 +09:30

View File

@@ -150,7 +150,7 @@ class User extends Model
{
$user = new static;
$this->assertValidPassword($password);
$user->assertValidPassword($password);
$user->username = $username;
$user->email = $email;