mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user