[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(
|
new UserCreationEvent(
|
||||||
$event->req_POST("name"),
|
$event->req_POST("name"),
|
||||||
$event->req_POST("pass1"),
|
$event->req_POST("pass1"),
|
||||||
$event->req_POST("pass1"),
|
$event->req_POST("pass2"),
|
||||||
$event->req_POST("email"),
|
$event->req_POST("email"),
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
|
|
|
@ -62,6 +62,7 @@ class UserPageTest extends ShimmiePHPUnitTestCase
|
||||||
$this->post_page('user_admin/create_other', [
|
$this->post_page('user_admin/create_other', [
|
||||||
'name' => 'testnew',
|
'name' => 'testnew',
|
||||||
'pass1' => 'testnew',
|
'pass1' => 'testnew',
|
||||||
|
'pass2' => 'testnew',
|
||||||
'email' => '',
|
'email' => '',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
@ -71,6 +72,7 @@ class UserPageTest extends ShimmiePHPUnitTestCase
|
||||||
$this->post_page('user_admin/create_other', [
|
$this->post_page('user_admin/create_other', [
|
||||||
'name' => 'testnew',
|
'name' => 'testnew',
|
||||||
'pass1' => 'testnew',
|
'pass1' => 'testnew',
|
||||||
|
'pass2' => 'testnew',
|
||||||
'email' => '',
|
'email' => '',
|
||||||
]);
|
]);
|
||||||
$this->assertEquals(302, $page->code);
|
$this->assertEquals(302, $page->code);
|
||||||
|
|
Reference in a new issue