We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this.authService.authenticateUser(user).subscribe(data => { if (data.success){ this.authService.storeUserData(data.token, data.user); this.flashMessages.show('You are now logged in',{ cssClass: 'alert-success', timeout:5000}); this.router.navigate(['/dashboard']); } else { this.flashMessages.show(data.msg, { cssClass: 'alert-danger', timeout:5000}); this.router.navigate(['/login']); }
});
i later changed it to if (data['success']){............. but while login it is going to dashboard even if the password or username is wrong...
nodejs 10.5.0 angular2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
this.authService.authenticateUser(user).subscribe(data => {
if (data.success){
this.authService.storeUserData(data.token, data.user);
this.flashMessages.show('You are now logged in',{ cssClass: 'alert-success', timeout:5000});
this.router.navigate(['/dashboard']);
} else {
this.flashMessages.show(data.msg, { cssClass: 'alert-danger', timeout:5000});
this.router.navigate(['/login']);
}
i later changed it to
if (data['success']){.............
but while login it is going to dashboard even if the password or username is wrong...
nodejs 10.5.0
angular2
The text was updated successfully, but these errors were encountered: