[user] fix typo in password check

This commit is contained in:
discomrade 2024-04-26 22:35:48 +00:00 committed by Shish
parent 8b674d598e
commit ba2bad48a6
2 changed files with 3 additions and 1 deletions

View file

@ -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
)

View file

@ -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);