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

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

Set username + password in login after registering

See merge request arsnova/arsnova-lite!177
parents 1f9ad70b 790ac828
No related merge requests found
......@@ -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;
});
......
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