Commit 9f4e6e70 authored by ganjingcun's avatar ganjingcun

完成验证邮箱跳转bbs

parent d00cf8d4
......@@ -166,8 +166,10 @@ export default {
const { data } = yield call(activate, payload);
if (data) {
message.success(messages['Your-account-has-been-successfully-activated!'], 3);
window.location.href = "https://bbs.ygobbs.com"
}
} catch (error) {
window.location.href = "https://bbs.ygobbs.com"
console.error(error);
message.error(messages[error.message] || error.message, 3);
}
......
......@@ -73,7 +73,7 @@ class Register extends React.Component {
const usernameProps = {
hasFeedback: true,
validateStatus: checkUsername,
extra: isUserNameExists ? 'username exists' : '',
extra: isUserNameExists ? 'username exists or invalid ' : '',
};
const usernameInputProps = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment