Commit 1bd118df authored by gap95's avatar gap95
Browse files

Resolved PR comments

parent f38dbf6a
...@@ -33,7 +33,7 @@ export class RegisterPage implements OnInit { ...@@ -33,7 +33,7 @@ export class RegisterPage implements OnInit {
.subscribe((data) => { .subscribe((data) => {
console.log('my data: ', data); console.log('my data: ', data);
this.restService.setToken(data.token); this.restService.setToken(data.token);
this.router.navigateByUrl('/home'); this.router.navigateByUrl('/login');
}, (error) => { }, (error) => {
console.log(error); console.log(error);
this.correctCredentials = true; this.correctCredentials = true;
......
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