Signup issue in #70 video.
shashankshekhar170997 opened this issue · comments
Hello, Harry bhaiya I am facing error when I am sign up for new user. This is showing error enter valid name after valid name also. how to solve this, where am I going wrongg
Hello, Harry bhaiya I am facing error when I am sign up for new user. This is showing error enter valid name after valid name also. how to solve this, where am I going wrongg
please share the repository link so error can be rectified easily
Signup Code is ok But i also faced problem with signup when register new user cant go to home with page and was getting error.that was because of token .cuz we got auth token only when we use login .signup only gives us first token which get not approved by our app.so i simply navigate to login after signup.then login and no error occurred.
if (json.success) {
//save token of user
localStorage.setItem('auth-token', json.authtoken)
navigate('/login');
props.showAlert("SuccessFully Created Account", "success")
} else {
props.showAlert("Invalid Creadentails", "danger")
}
this in SignUp.js