Compare commits
1 commit
main
...
fix-auth-f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41ec24fa31 |
2 changed files with 1 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ function CreatePassword(props: Props & WithCaptchaProps) {
|
|||
const { submitWithCaptcha, isVerifyingCaptcha, resetCaptcha } = props;
|
||||
|
||||
const handleSubmit = (token?: string) => {
|
||||
if (!validatePassword(password) || !token) {
|
||||
if (!validatePassword(password)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,8 +43,6 @@ function ResetPasswordRequest(props: Props & WithCaptchaProps) {
|
|||
};
|
||||
|
||||
const handleSubmit = (token?: string) => {
|
||||
if (!token) return;
|
||||
|
||||
setError(null);
|
||||
requestResetPassword({ email: email.trim(), 'g-recaptcha-response': token })
|
||||
.catch((err: any) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue