mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
validate password in the frontend too (#2017)
This commit is contained in:
@@ -23,6 +23,13 @@ export function RegistrationPage() {
|
||||
password: "",
|
||||
email: "",
|
||||
},
|
||||
validate: {
|
||||
password: value =>
|
||||
serverInfos && value.length < serverInfos.minimumPasswordLength
|
||||
? _(msg`Password must be at least ${serverInfos.minimumPasswordLength} characters`)
|
||||
: null,
|
||||
},
|
||||
validateInputOnChange: true,
|
||||
})
|
||||
|
||||
const login = useAsyncCallback(client.user.login, {
|
||||
|
||||
Reference in New Issue
Block a user