diff --git a/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.html b/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.html index 13d827fe58..02c74b9984 100644 --- a/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.html +++ b/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.html @@ -1,113 +1,91 @@
- -

Join your team to start managing webhooks

-

Please fill in your {{userDetailsAvailable ? 'password details below to': 'details below to create your account and'}} join your team

-
-
-
-
- - -
- input error icon - Firstname is required + + +

Join your team to start managing webhooks

+

Please fill in your {{ userDetailsAvailable ? 'password details below to' : 'details below to create your account and' }} join your team

+
+ +
+
+ + +
+ input error icon + Firstname is required +
+
+ +
+ + +
+ input error icon + Lastname is required +
- - -
+ + +
input error icon - Lastname is required + Email is required
-
- -
- - -
- input error icon - Email is required -
-
-
- -
- - -
-
- input error icon - Password is required -
-
- input error icon - Password should be at least 8 characters -
-
- input error icon - Password should have at least one number -
-
- input error icon - Password should have at least one special character -
-
-
- -
- - -
-
- input error icon - Confirm new password -
- -
- input error icon - Passwords do not match + +
+
+ input error icon + Password is required +
+
+ input error icon + Password should be at least 8 characters +
+
+ input error icon + Password should have at least one number +
+
+ input error icon + Password should have at least one special character +
-
- - -
+ + + + + + +
+ success +
+

This invitation has been accepted

+

Login to continue to your workspace

+
+ +
+
diff --git a/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.scss b/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.scss index e69de29bb2..f5a205e8c3 100644 --- a/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.scss +++ b/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.scss @@ -0,0 +1,6 @@ +.logo-2 { + img { + height: 150px; + width: 150px; + } +} diff --git a/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.ts b/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.ts index dc216cb47e..005a13743d 100644 --- a/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.ts +++ b/web/ui/dashboard/src/app/public/accept-invite/accept-invite.component.ts @@ -16,6 +16,7 @@ export class AcceptInviteComponent implements OnInit { token!: string; fetchingDetails = false; userDetailsAvailable = false; + isInviteAccepted = false; acceptInviteForm: FormGroup = this.formBuilder.group({ first_name: ['', Validators.required], last_name: ['', Validators.required], @@ -23,8 +24,7 @@ export class AcceptInviteComponent implements OnInit { role: this.formBuilder.group({ type: ['super_user'] }), - password: ['', Validators.compose([Validators.minLength(8), Validators.required])], - password_confirmation: ['', Validators.required] + password: ['', Validators.compose([Validators.minLength(8), Validators.required])] }); constructor(private formBuilder: FormBuilder, private acceptInviteService: AcceptInviteService, private route: ActivatedRoute, private router: Router, private generalService: GeneralService) {} @@ -40,6 +40,7 @@ export class AcceptInviteComponent implements OnInit { const response = await this.acceptInviteService.getUserDetails(token); response.data.user ? (this.userDetailsAvailable = true) : (this.userDetailsAvailable = false); const inviteeDetails = response.data.token; + inviteeDetails.status === 'accepted' ? (this.isInviteAccepted = true) : (this.isInviteAccepted = false); const userDetails = response.data.user; this.acceptInviteForm.patchValue({ first_name: userDetails?.first_name ? userDetails.first_name : '', @@ -73,16 +74,6 @@ export class AcceptInviteComponent implements OnInit { } } - checkPassword(): boolean { - const newPassword = this.acceptInviteForm.value.password; - const confirmPassword = this.acceptInviteForm.value.password_confirmation; - if (newPassword === confirmPassword) { - return true; - } else { - return false; - } - } - checkForNumber(password: string): boolean { const regex = /\d/; return regex.test(password); diff --git a/web/ui/dashboard/src/app/public/forgot-password/forgot-password.component.html b/web/ui/dashboard/src/app/public/forgot-password/forgot-password.component.html index 06467fdfb9..cf9021b7d0 100644 --- a/web/ui/dashboard/src/app/public/forgot-password/forgot-password.component.html +++ b/web/ui/dashboard/src/app/public/forgot-password/forgot-password.component.html @@ -31,8 +31,8 @@

Forgot your password? 🔐

We sent you a password reset link, 📬 🔐

A password reset link has been sent to your email, follow the link in your email to change your password

-
- +
+
diff --git a/web/ui/dashboard/src/app/public/login/login.component.html b/web/ui/dashboard/src/app/public/login/login.component.html index e61c2fce8a..9b7b244b00 100644 --- a/web/ui/dashboard/src/app/public/login/login.component.html +++ b/web/ui/dashboard/src/app/public/login/login.component.html @@ -11,7 +11,7 @@
-
+
@@ -27,6 +27,10 @@ Password is required
+
+ Forgot password? + +