Skip to content
Snippets Groups Projects
Commit b9f6b49d authored by Tom Käsler's avatar Tom Käsler
Browse files

Merge branch 'fix-register-dialog-return' into 'master'

Fix setting username + password on register dialog return

See merge request arsnova/arsnova-lite!180
parents 12a83eb8 32c76590
No related merge requests found
...@@ -133,10 +133,12 @@ export class LoginComponent implements OnInit, OnChanges { ...@@ -133,10 +133,12 @@ export class LoginComponent implements OnInit, OnChanges {
this.dialog.open(RegisterComponent, { this.dialog.open(RegisterComponent, {
width: '350px' width: '350px'
}).afterClosed().subscribe(result => { }).afterClosed().subscribe(result => {
this.usernameFormControl.setValue(result.username); if (result) {
this.passwordFormControl.setValue(result.password); this.usernameFormControl.setValue(result.username);
this.username = result.username; this.passwordFormControl.setValue(result.password);
this.password = result.password; this.username = result.username;
this.password = result.password;
}
}); });
} }
} }
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