Skip to content

Commit

Permalink
Bug fix if the password was bcrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
BafS committed Jul 10, 2016
1 parent 3aae39c commit c1cd0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Parvula/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(array $infos) {
* @return bool If the password is ok
*/
public function login($password) {
if (strlen($password) < 50) {
if (strlen($this->password) < 50) {
// Not hashed, TODO temporary
return $password === $this->password;
}
Expand Down

0 comments on commit c1cd0fc

Please sign in to comment.