{"action":"created","issue":{"url":"https://api.github.com/repos/humhub/humhub/issues/1286","labels_url":"https://api.github.com/repos/humhub/humhub/issues/1286/labels{/name}","comments_url":"https://api.github.com/repos/humhub/humhub/issues/1286/comments","events_url":"https://api.github.com/repos/humhub/humhub/issues/1286/events","html_url":"https://github.com/humhub/humhub/issues/1286","id":114709653,"number":1286,"title":"Error logging in on fresh install","user":{"login":"davidjeddy","id":6232455,"avatar_url":"https://avatars.githubusercontent.com/u/6232455?v=3","gravatar_id":"","url":"https://api.github.com/users/davidjeddy","html_url":"https://github.com/davidjeddy","followers_url":"https://api.github.com/users/davidjeddy/followers","following_url":"https://api.github.com/users/davidjeddy/following{/other_user}","gists_url":"https://api.github.com/users/davidjeddy/gists{/gist_id}","starred_url":"https://api.github.com/users/davidjeddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidjeddy/subscriptions","organizations_url":"https://api.github.com/users/davidjeddy/orgs","repos_url":"https://api.github.com/users/davidjeddy/repos","events_url":"https://api.github.com/users/davidjeddy/events{/privacy}","received_events_url":"https://api.github.com/users/davidjeddy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/humhub/humhub/labels/Status:Need%20investigation","name":"Status:Need investigation","color":"fbca04"},{"url":"https://api.github.com/repos/humhub/humhub/labels/Type:Bug","name":"Type:Bug","color":"db5452"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-02T23:37:04Z","updated_at":"2015-11-06T19:12:09Z","closed_at":"2015-11-06T19:12:09Z","body":"Steps taken:\r\n`git clone https://github.com/humhub/humhub.git ./`\r\ncopy .\r\n`composer global require \"fxp/composer-asset-plugin:~1.0.0\" && composer update --prefer-dist --profile --no-dev -o -v`\r\n\r\nVisit URL\r\nComplete install steps successfully.\r\ncopy .htacces.dist to .htaccess\r\n\r\nAdded\r\n```\r\n<?php\r\n\r\nreturn [\r\n    'components' => [\r\n        'urlManager' => [\r\n            'showScriptName' => false,\r\n            'enablePrettyUrl' => true,\r\n        ],\r\n    ]\r\n];\r\n```\r\n\r\nto /protected/config/common.php\r\n\r\nvisit {domain}/user/auth/login\r\nInput username and password; press `log in` button\r\nReceive error this error:\r\n\r\n```\r\nCall to a member function validatePassword() on null\r\n1. in /var/www_vagrant/humhub.dev/protected/humhub/modules/user/models/forms/AccountLogin.php at line 51\r\n42434445464748495051525354555657585960     *\r\n     * @param string $attribute the attribute currently being validated\r\n     * @param array $params the additional name-value pairs given in the rule\r\n     */\r\n    public function validatePassword($attribute, $params)\r\n    {\r\n        if (!$this->hasErrors()) {\r\n            $user = $this->getUser();\r\n            if ($user !== null) {\r\n                if ($user->auth_mode === User::AUTH_MODE_LOCAL && $user->currentPassword->validatePassword($this->password)) {\r\n                    return;\r\n                } elseif ($user->auth_mode === User::AUTH_MODE_LDAP && Ldap::isAvailable() && Ldap::getInstance()->authenticate($user->username, $this->password)) {\r\n                    return;\r\n                }\r\n            }\r\n            $this->addError($attribute, 'Incorrect username or password.');\r\n        }\r\n    }\r\n \r\n```\r\n\r\n\r\nCurrent hash: 0d5e6e31e7e165113822b9f34ded2c49c589db5e"},"comment":{"url":"https://api.github.com/repos/humhub/humhub/issues/comments/154504284","html_url":"https://github.com/humhub/humhub/issues/1286#issuecomment-154504284","issue_url":"https://api.github.com/repos/humhub/humhub/issues/1286","id":154504284,"user":{"login":"davidjeddy","id":6232455,"avatar_url":"https://avatars.githubusercontent.com/u/6232455?v=3","gravatar_id":"","url":"https://api.github.com/users/davidjeddy","html_url":"https://github.com/davidjeddy","followers_url":"https://api.github.com/users/davidjeddy/followers","following_url":"https://api.github.com/users/davidjeddy/following{/other_user}","gists_url":"https://api.github.com/users/davidjeddy/gists{/gist_id}","starred_url":"https://api.github.com/users/davidjeddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidjeddy/subscriptions","organizations_url":"https://api.github.com/users/davidjeddy/orgs","repos_url":"https://api.github.com/users/davidjeddy/repos","events_url":"https://api.github.com/users/davidjeddy/events{/privacy}","received_events_url":"https://api.github.com/users/davidjeddy/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T19:12:09Z","updated_at":"2015-11-06T19:12:09Z","body":"That would be it, somehow the user_password table was cleared.\r\nSuggestion: validate data exists before calling validatePassword()l, looks like \\humhub\\modules\\user\\models\\forms\\AccountLogin->validatePassword().\r\nClosing"}}