summaryrefslogtreecommitdiff
path: root/_test/cases
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-10-14 16:05:57 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-10-14 16:05:57 +0200
commit7ae6f87a6c547c0bed9f52e628c050551529259a (patch)
treee5c757a5cc82528f60eb85c3ea8dc5565caf97a7 /_test/cases
parent931a41b3c0876dd969a780d5c17c2c435f8749ce (diff)
downloadrpg-7ae6f87a6c547c0bed9f52e628c050551529259a.tar.gz
rpg-7ae6f87a6c547c0bed9f52e628c050551529259a.tar.bz2
Fixed test and broken salt generation in PassHash class
Turned out a test wasn't really testing what it should have been testing and thus did hide a bug. Still puzzles me why it still worked some times. This patch also sets the default iteration count for bmd5 and pmd5 to 8.
Diffstat (limited to '_test/cases')
-rw-r--r--_test/cases/inc/auth_password.test.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/_test/cases/inc/auth_password.test.php b/_test/cases/inc/auth_password.test.php
index 8646e3226..928552a14 100644
--- a/_test/cases/inc/auth_password.test.php
+++ b/_test/cases/inc/auth_password.test.php
@@ -43,8 +43,7 @@ class auth_password_test extends UnitTestCase {
foreach($this->passes as $method => $hash){
$info = "testing method $method";
$this->signal('failinfo',$info);
-
- $hash = auth_cryptPassword('foo'.$method);
+ $hash = auth_cryptPassword('foo'.$method,$method);
$this->assertTrue(auth_verifyPassword('foo'.$method,$hash));
}
}