diff --git a/ext/user/main.php b/ext/user/main.php index 8bec2cf1..ec67f8fd 100644 --- a/ext/user/main.php +++ b/ext/user/main.php @@ -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 ) diff --git a/ext/user/test.php b/ext/user/test.php index cd1df1b6..be275669 100644 --- a/ext/user/test.php +++ b/ext/user/test.php @@ -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);