From ba2bad48a66c13b94e39ddf15b07fa7f0c704e88 Mon Sep 17 00:00:00 2001 From: discomrade <83621080+discomrade@users.noreply.github.com> Date: Fri, 26 Apr 2024 22:35:48 +0000 Subject: [PATCH] [user] fix typo in password check --- ext/user/main.php | 2 +- ext/user/test.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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);