Skip to content

Commit c1cd0fc

Browse files
committed
Bug fix if the password was bcrypted
1 parent 3aae39c commit c1cd0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Parvula/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(array $infos) {
6161
* @return bool If the password is ok
6262
*/
6363
public function login($password) {
64-
if (strlen($password) < 50) {
64+
if (strlen($this->password) < 50) {
6565
// Not hashed, TODO temporary
6666
return $password === $this->password;
6767
}

0 commit comments

Comments
 (0)