mirror of
1
Fork 0

[bugfix] Fix password change keys (#1416)

This commit is contained in:
tobi 2023-02-04 12:40:35 +01:00 committed by GitHub
parent abe9447d28
commit 04ac3f8acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ function UserSettingsForm({ data }) {
function PasswordChange() { function PasswordChange() {
const form = { const form = {
oldPassword: useTextInput("old_password"), oldPassword: useTextInput("old_password"),
newPassword: useTextInput("old_password", { newPassword: useTextInput("new_password", {
validator(val) { validator(val) {
if (val != "" && val == form.oldPassword.value) { if (val != "" && val == form.oldPassword.value) {
return "New password same as old password"; return "New password same as old password";