Register Succeeded.
- Form validation failed, please ensure the form is filled.
+ Form validation failed, please ensure the form is filled correctly.
Failed to send to server, please try again later.
diff --git a/src/app/auth/register.component.ts b/src/app/auth/register.component.ts
index 83846bc..4cc5eb4 100644
--- a/src/app/auth/register.component.ts
+++ b/src/app/auth/register.component.ts
@@ -81,10 +81,14 @@ export class RegisterComponent {
.subscribe(
result => {
console.log('registered!');
+ this.registerStatus = "success";
+ console.log(this.registerStatus);
this.router.navigate(['/dashboard']);
},
error => {
console.log( error._body );
+ this.registerStatus = "send_failed";
+ console.log(this.registerStatus)
}
);
}
diff --git a/src/app/dashboard/account-edit.component.html b/src/app/dashboard/account-edit.component.html
index 1593fe9..97a0658 100644
--- a/src/app/dashboard/account-edit.component.html
+++ b/src/app/dashboard/account-edit.component.html
@@ -82,6 +82,19 @@