You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/11/09 19:34:07 UTC

[incubator-streampipes] branch dev updated: [STREAMPIPES-426] Fix use registration

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 393b715  [STREAMPIPES-426] Fix use registration
393b715 is described below

commit 393b7158cd831c2afaeb9e8f1d8ff5c55cad1e99
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Tue Nov 9 20:33:58 2021 +0100

    [STREAMPIPES-426] Fix use registration
---
 ui/src/app/login/components/register/register.component.ts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ui/src/app/login/components/register/register.component.ts b/ui/src/app/login/components/register/register.component.ts
index 6cac15d..1371049 100644
--- a/ui/src/app/login/components/register/register.component.ts
+++ b/ui/src/app/login/components/register/register.component.ts
@@ -54,6 +54,13 @@ export class RegisterComponent implements OnInit {
     this.parentForm.addControl('password', new FormControl('', Validators.required));
     this.parentForm.addControl('repeatPassword', new FormControl('', Validators.required));
     this.parentForm.setValidators(checkPasswords);
+
+    this.parentForm.valueChanges.subscribe(v => {
+      this.registrationData = {
+        username: v.username,
+        password: v.password
+      };
+    });
   }
 
   registerUser() {