New user module with password support. This supports the same password mechanism as g1 and g2 to facilitate a migration.

This commit is contained in:
Tim Almdal
2008-11-11 04:57:49 +00:00
parent db6917b58b
commit 62bb63a70d
4 changed files with 353 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ class User_Installer_Test extends Unit_Test_Case {
$user = ORM::factory("user", 1);
$this->assert_equal("Gallery Administrator", $user->display_name);
$this->assert_equal("admin", $user->name);
$this->assert_true(user_password::is_correct_password($user, "admin"));
$this->assert_equal(
array("administrator", "registered"),