summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-03-16 11:11:15 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-03-16 11:11:15 +0100
commitd4dca43453a7a9e798c208cbb89ee09616381dde (patch)
tree9e27d608b2f04f45347537f7cf8cab7a7f376962 /_test
parent7883d066bc903bdea41cfdb920c949ec1ebdf206 (diff)
downloadrpg-d4dca43453a7a9e798c208cbb89ee09616381dde.tar.gz
rpg-d4dca43453a7a9e798c208cbb89ee09616381dde.tar.bz2
fixed error in bcrypt password method
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/auth_password.test.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/_test/cases/inc/auth_password.test.php b/_test/cases/inc/auth_password.test.php
index 394f0b2f5..d4a4d2bdb 100644
--- a/_test/cases/inc/auth_password.test.php
+++ b/_test/cases/inc/auth_password.test.php
@@ -54,6 +54,10 @@ class auth_password_test extends UnitTestCase {
$this->assertTrue(auth_verifyPassword('foobcrypt',$hash));
}
+ function test_verifyPassword_fixedbcrypt(){
+ $this->assertTrue(auth_verifyPassword('foobcrypt','$2a$12$uTWercxbq4sjp2xAzv3we.ZOxk51m5V/Bv5bp2H27oVFJl5neFQoC'));
+ }
+
function test_verifyPassword_nohash(){
$this->assertTrue(auth_verifyPassword('foo','$1$$n1rTiFE0nRifwV/43bVon/'));
}