diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-01-26 12:59:15 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-01-26 12:59:15 +0100 |
commit | 529b04166c604b1d086cbfeac1bd676227d04872 (patch) | |
tree | d808c7819b084dbc2901a1593677a5ba8f92cc97 /_test | |
parent | bcc1938ed0f7c97629d290070aec14b180e441ae (diff) | |
download | rpg-529b04166c604b1d086cbfeac1bd676227d04872.tar.gz rpg-529b04166c604b1d086cbfeac1bd676227d04872.tar.bz2 |
added mediawiki password method FS#2559
This should make migrating from MediaWiki a bit easier.
Diffstat (limited to '_test')
-rw-r--r-- | _test/tests/inc/auth_password.test.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_test/tests/inc/auth_password.test.php b/_test/tests/inc/auth_password.test.php index 426353291..53b9b2c6c 100644 --- a/_test/tests/inc/auth_password.test.php +++ b/_test/tests/inc/auth_password.test.php @@ -61,6 +61,11 @@ class auth_password_test extends PHPUnit_Framework_TestCase { $this->assertTrue(auth_verifyPassword('test12345','$H$9IQRaTwmfeRo7ud9Fh4E2PdI0S3r.L0')); } + function test_veryPassword_mediawiki(){ + $this->assertTrue(auth_verifyPassword('password', ':B:838c83e1:e4ab7024509eef084cdabd03d8b2972c')); + } + + /** * pmd5 checking should throw an exception when a hash with a too high * iteration count is passed |