From 6f6829d6505de68eba1413a0d1ede59fa72dfbe9 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 9 Jan 2025 01:49:19 +0100 Subject: [PATCH] adjust tests --- src/frontend/src/pages/Auth/ChangePassword.tsx | 2 +- src/frontend/src/states/ApiState.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/pages/Auth/ChangePassword.tsx b/src/frontend/src/pages/Auth/ChangePassword.tsx index 57ef993db9..555a20a839 100644 --- a/src/frontend/src/pages/Auth/ChangePassword.tsx +++ b/src/frontend/src/pages/Auth/ChangePassword.tsx @@ -62,7 +62,7 @@ export default function Set_Password() { // check if passwords match if (simpleForm.values.new_password1 !== simpleForm.values.new_password2) { - passwordError({ new_password2: t`Passwords do not match` }); + passwordError({ new_password2: t`The two password fields didn’t match` }); return; } diff --git a/src/frontend/src/states/ApiState.tsx b/src/frontend/src/states/ApiState.tsx index d231220ca5..52b93ae7a6 100644 --- a/src/frontend/src/states/ApiState.tsx +++ b/src/frontend/src/states/ApiState.tsx @@ -58,7 +58,7 @@ export const useServerApiState = create()( }, registration_enabled: () => { // TODO - return true; + return false; }, sso_registration_enabled: () => { // TODO