From 0413daab7420047d60cb36de53da7f1a17c4364a Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Fri, 4 Sep 2015 00:00:24 +0200 Subject: [PATCH] call to $this-> assertValidPassword from static context --- src/Core/Users/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Users/User.php b/src/Core/Users/User.php index db1ed8e54..a92e28ad5 100755 --- a/src/Core/Users/User.php +++ b/src/Core/Users/User.php @@ -150,7 +150,7 @@ class User extends Model { $user = new static; - $this->assertValidPassword($password); + $user->assertValidPassword($password); $user->username = $username; $user->email = $email;