Fix for 'Couldnt figure out a password hash for {SSHA}' fixes #286
This commit is contained in:
@@ -10,4 +10,9 @@ final class SHA extends Base
|
||||
{
|
||||
return sprintf('{%s}%s',self::key,base64_encode(hash('sha1',$password,true)));
|
||||
}
|
||||
|
||||
public static function subid(string $password): bool
|
||||
{
|
||||
return preg_match('/^{'.static::key.'}/',$password);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user