[user] fix typo in password check
This commit is contained in:
parent
8b674d598e
commit
ba2bad48a6
2 changed files with 3 additions and 1 deletions
|
@ -210,7 +210,7 @@ class UserPage extends Extension
|
|||
new UserCreationEvent(
|
||||
$event->req_POST("name"),
|
||||
$event->req_POST("pass1"),
|
||||
$event->req_POST("pass1"),
|
||||
$event->req_POST("pass2"),
|
||||
$event->req_POST("email"),
|
||||
false
|
||||
)
|
||||
|
|
|
@ -62,6 +62,7 @@ class UserPageTest extends ShimmiePHPUnitTestCase
|
|||
$this->post_page('user_admin/create_other', [
|
||||
'name' => 'testnew',
|
||||
'pass1' => 'testnew',
|
||||
'pass2' => 'testnew',
|
||||
'email' => '',
|
||||
]);
|
||||
});
|
||||
|
@ -71,6 +72,7 @@ class UserPageTest extends ShimmiePHPUnitTestCase
|
|||
$this->post_page('user_admin/create_other', [
|
||||
'name' => 'testnew',
|
||||
'pass1' => 'testnew',
|
||||
'pass2' => 'testnew',
|
||||
'email' => '',
|
||||
]);
|
||||
$this->assertEquals(302, $page->code);
|
||||
|
|
Reference in a new issue