注册失败后刷新验证码
This commit is contained in:
parent
18be2a5521
commit
67c78add30
@ -48,7 +48,7 @@ export default function SignUp() {
|
||||
setLoading(true)
|
||||
register(d.email ?? "", d.username ?? "", d.password ?? "", captchaToken).
|
||||
then(() => navigate("/login")).
|
||||
catch(v => [setRegErr(String(v)), console.warn(v)]).
|
||||
catch(v => [setRegErr(String(v)), console.warn(v), captchaRef.current?.reload()]).
|
||||
finally(() => setLoading(false))
|
||||
};
|
||||
|
||||
|
0
frontend/src/views/User.tsx
Normal file
0
frontend/src/views/User.tsx
Normal file
Loading…
x
Reference in New Issue
Block a user