wip: profile component

This commit is contained in:
2021-06-17 10:30:40 +02:00
parent b748b9492a
commit 9821c004ec
5 changed files with 25 additions and 19 deletions
@@ -36,8 +36,8 @@ export class RegistrationComponent implements OnInit {
onSubmit() {
this.api.registerUser(this.form.value.username, this.form.value.password, this.form.value.email).subscribe(
res=> {
this.router.navigate(['']);
this.api.saveSessionInfoToLocalStorage(res);
this.router.navigate(['/']);
}
);
}