mirror of
https://github.com/wassname/talk.git
synced 2026-08-20 12:50:41 +08:00
re-direct to sign in when email verification is off. add proptypes
This commit is contained in:
@@ -85,10 +85,6 @@ export const fetchSignUp = (formData, redirectUri) => (dispatch) => {
|
||||
coralApi('/users', {method: 'POST', body: formData, headers: {'X-Pym-Url': redirectUri}})
|
||||
.then(({user}) => {
|
||||
dispatch(signUpSuccess(user));
|
||||
|
||||
// setTimeout(() =>{
|
||||
// dispatch(changeView('SIGNIN'));
|
||||
// }, 3000);
|
||||
})
|
||||
.catch(error => {
|
||||
dispatch(signUpFailure(lang.t(`error.${error.message}`)));
|
||||
|
||||
Reference in New Issue
Block a user