Add register page
This commit is contained in:
@@ -71,7 +71,7 @@ function ResetPasswordForm ({ codeParam }: { codeParam: string }) {
|
||||
}
|
||||
)
|
||||
if (result.data.success) {
|
||||
setResult(2)
|
||||
router.push('/account/login')
|
||||
} else {
|
||||
alert(
|
||||
'Failed to reset password, error: ' +
|
||||
@@ -116,19 +116,12 @@ function ResetPasswordForm ({ codeParam }: { codeParam: string }) {
|
||||
<button type='submit'>Update password</button>
|
||||
</form>
|
||||
) : (
|
||||
(result == 1 || result == 2) && (
|
||||
result == 1 && (
|
||||
<p className='mt-2 -mb-2 text-center text-sm'>
|
||||
{result == 1
|
||||
? 'Unable to verify captcha, please reload page.'
|
||||
: 'Password reset sucessfully'}
|
||||
Unable to verify captcha, please reload page.
|
||||
</p>
|
||||
)
|
||||
)}
|
||||
{result == 2 && (
|
||||
<div className='flex justify-center mt-6'>
|
||||
<button>Login</button>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user