Update PasswordResetForm.js
This commit is contained in:
parent
d86f57aa75
commit
430777f795
@ -33,7 +33,7 @@ const PasswordResetForm = () => {
|
|||||||
async function handleSubmit(e) {
|
async function handleSubmit(e) {
|
||||||
if (!email) return;
|
if (!email) return;
|
||||||
if (turnstileEnabled && turnstileToken === '') {
|
if (turnstileEnabled && turnstileToken === '') {
|
||||||
showInfo('请稍后几秒重试,Turnstile 正在检查用户环境!');
|
showInfo('Please wait a few seconds and retry, Turnstile is checking the user environment!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
@ -42,7 +42,7 @@ const PasswordResetForm = () => {
|
|||||||
);
|
);
|
||||||
const { success, message } = res.data;
|
const { success, message } = res.data;
|
||||||
if (success) {
|
if (success) {
|
||||||
showSuccess('重置邮件发送成功,请检查邮箱!');
|
showSuccess('Password reset email sent successfully, please check your inbox!');
|
||||||
setInputs({ ...inputs, email: '' });
|
setInputs({ ...inputs, email: '' });
|
||||||
} else {
|
} else {
|
||||||
showError(message);
|
showError(message);
|
||||||
@ -54,7 +54,7 @@ const PasswordResetForm = () => {
|
|||||||
<Grid textAlign='center' style={{ marginTop: '48px' }}>
|
<Grid textAlign='center' style={{ marginTop: '48px' }}>
|
||||||
<Grid.Column style={{ maxWidth: 450 }}>
|
<Grid.Column style={{ maxWidth: 450 }}>
|
||||||
<Header as='h2' color='' textAlign='center'>
|
<Header as='h2' color='' textAlign='center'>
|
||||||
<Image src='/logo.png' /> 密码重置
|
<Image src='/logo.png' /> Password Reset
|
||||||
</Header>
|
</Header>
|
||||||
<Form size='large'>
|
<Form size='large'>
|
||||||
<Segment>
|
<Segment>
|
||||||
@ -62,7 +62,7 @@ const PasswordResetForm = () => {
|
|||||||
fluid
|
fluid
|
||||||
icon='mail'
|
icon='mail'
|
||||||
iconPosition='left'
|
iconPosition='left'
|
||||||
placeholder='邮箱地址'
|
placeholder='Email address'
|
||||||
name='email'
|
name='email'
|
||||||
value={email}
|
value={email}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
@ -84,7 +84,7 @@ const PasswordResetForm = () => {
|
|||||||
onClick={handleSubmit}
|
onClick={handleSubmit}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
>
|
>
|
||||||
提交
|
Submit
|
||||||
</Button>
|
</Button>
|
||||||
</Segment>
|
</Segment>
|
||||||
</Form>
|
</Form>
|
||||||
|
Loading…
Reference in New Issue
Block a user