From 355de791a048ba96f4378298c356ed507569de1c Mon Sep 17 00:00:00 2001 From: Chneemann Date: Fri, 2 Aug 2024 04:45:47 +0200 Subject: [PATCH] form validation error query --- .../auth/register/register.component.html | 17 +++++++++++++++++ .../auth/register/register.component.scss | 15 ++++++++++++++- .../auth/register/register.component.ts | 2 +- frontend/src/assets/style/colors.scss | 1 + 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/auth/register/register.component.html b/frontend/src/app/components/auth/register/register.component.html index 0e2f8bc..fb4fc9a 100644 --- a/frontend/src/app/components/auth/register/register.component.html +++ b/frontend/src/app/components/auth/register/register.component.html @@ -16,8 +16,10 @@ placeholder="Email Address" autocomplete="email" [(ngModel)]="authData.mail" + disabled required /> +
+
+ @if (authData.password.length < 6 && password.touched) { +

Password is too short, min 6 characters

+ } +
+
+ @if (authData.password !== authData.passwordConfirm && + passwordConfirm.touched) { +

The passwords do not match

+ } +