From 790ac82857fa57e51b74c0afd59f58d7c7e3074c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20K=C3=A4sler?= <tom.kaesler@mni.thm.de> Date: Sat, 25 May 2019 00:16:16 +0200 Subject: [PATCH] Set username + password in login after registering --- src/app/components/shared/login/login.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/shared/login/login.component.ts b/src/app/components/shared/login/login.component.ts index bd1d3126a..63c92dbe8 100644 --- a/src/app/components/shared/login/login.component.ts +++ b/src/app/components/shared/login/login.component.ts @@ -133,6 +133,8 @@ export class LoginComponent implements OnInit, OnChanges { this.dialog.open(RegisterComponent, { width: '350px' }).afterClosed().subscribe(result => { + this.usernameFormControl.setValue(result.username); + this.passwordFormControl.setValue(result.password); this.username = result.username; this.password = result.password; }); -- GitLab