Skip to content
Snippets Groups Projects
Commit c4c23c31 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

For completeness also add a Bad test for pw without algo

parent bf972445
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,20 @@ PHP;
$this->assertTrue($res);
}
/**
* @covers \SimpleSAML\Utils\Crypto::pwValid
*/
public function testBadPwInvalid()
{
$pw = "password";
$pw2 = "password2";
$hash = Crypto::pwHash($pw);
$res = Crypto::pwValid($hash, $pw2);
$this->assertFalse($res);
}
/**
* @covers \SimpleSAML\Utils\Crypto::pwValid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment