diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-29 15:28:59 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-29 15:28:59 -0400 |
commit | 785d0df231d0cfdbf63f5ed60b56fb882f694725 (patch) | |
tree | 4149a2005b945b0e96ac6388b7078892934383b2 /ufund-ui/src/app/components/signup/signup.component.html | |
parent | 451a9abd5a4c461ccbb0b7b7d51b78dbfe12ec54 (diff) | |
download | JellySolutions-785d0df231d0cfdbf63f5ed60b56fb882f694725.tar.gz JellySolutions-785d0df231d0cfdbf63f5ed60b56fb882f694725.tar.bz2 JellySolutions-785d0df231d0cfdbf63f5ed60b56fb882f694725.zip |
Finished implementing signup page and checked for the majority of edge cases.
Diffstat (limited to 'ufund-ui/src/app/components/signup/signup.component.html')
-rw-r--r-- | ufund-ui/src/app/components/signup/signup.component.html | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/ufund-ui/src/app/components/signup/signup.component.html b/ufund-ui/src/app/components/signup/signup.component.html index 1b50d39..e078123 100644 --- a/ufund-ui/src/app/components/signup/signup.component.html +++ b/ufund-ui/src/app/components/signup/signup.component.html @@ -1,16 +1,13 @@ <p>Signup:</p> -<input placeholder="Username" type="text" #username> -<input placeholder="Password" type="password" (input)="checkPasswordStrength(password.value)" #password> -<button type="button" [disabled]="passwordStrongEnough | async" (click)="signup(username.value, password.value)">Create Account</button> - -<div id="requirement2" *ngIf="test"> {{test | async}} </div> - -<progress id="bar" [value]="strength | async" max="6"> </progress> - -<span *ngFor="let requirement of passwordRequirements"> - <span id="requirement" *ngIf="passwordRequirements" [style.color]="color | async"> {{requirement}} </span> +<input placeholder="Username" type="text" (input)="comparePassword(username.value, confirmPass.value, password.value)" #username> +<span id="usernameStatusText" *ngIf="usernameStatusText">{{usernameStatusText | async}}</span> +<input placeholder="Password" type="password" (input)="comparePassword(username.value, confirmPass.value, password.value)" #password> +<progress [ngClass]="'color' + strength.getValue()" id="bar" [value]="strength | async" max="6"> </progress> +<span id="statusText" *ngIf="statusText">{{statusText | async}}</span> +<span *ngFor="let requirement of Object.values(passwordRequirements)"> + <span id="requirement" *ngIf="passwordRequirements" [style.color]="requirement.value ? 'green' : 'red'"> {{requirement.title}} </span> </span> - -<span *ngIf="statusText">{{statusText | async}}</span> -<span *ngIf="strength">{{strength | async}}</span> +<input placeholder="Confirm password" type="password" (input)="comparePassword(username.value, confirmPass.value, password.value)" #confirmPass> +<span id="passwordStatusText" *ngIf="passwordStatusText">{{passwordStatusText | async}}</span> +<button type="button" [disabled]="!(ableToCreateAccount | async)" (click)="signup(username.value, password.value)">Create Account</button> <span *ngIf="showSuccessMessage | async">Account created <a routerLink="/login">Proceed to login</a></span> |