diff --git a/common/models/LoginForm.php b/common/models/LoginForm.php
index <HASH>..<HASH> 100644
--- a/common/models/LoginForm.php
+++ b/common/models/LoginForm.php
@@ -67,7 +67,7 @@ class LoginForm extends Model
      *
      * @return User|null
      */
-    private function getUser()
+    protected function getUser()
     {
         if ($this->_user === null) {
             $this->_user = User::findByUsername($this->username);
Changed \common\models\LoginForm::getUser from private to protected