diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-27 18:47:07 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-27 18:47:07 -0400 |
commit | 7ccbfb414de47941c8acb2e6f9c2cc7a01cd819c (patch) | |
tree | 8f12b6e3117c8877eaf581478c1654faf15fcccb /ufund-ui/src/app/components/signup/signup.component.html | |
parent | 959b5bbaaa370542b75d804cedbbbecea881df0f (diff) | |
download | JellySolutions-7ccbfb414de47941c8acb2e6f9c2cc7a01cd819c.tar.gz JellySolutions-7ccbfb414de47941c8acb2e6f9c2cc7a01cd819c.tar.bz2 JellySolutions-7ccbfb414de47941c8acb2e6f9c2cc7a01cd819c.zip |
Added requirements list, updated bar, and disabling of creation with weak passwords.
Diffstat (limited to 'ufund-ui/src/app/components/signup/signup.component.html')
-rw-r--r-- | ufund-ui/src/app/components/signup/signup.component.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/signup/signup.component.html b/ufund-ui/src/app/components/signup/signup.component.html index 5b1b4f7..1b50d39 100644 --- a/ufund-ui/src/app/components/signup/signup.component.html +++ b/ufund-ui/src/app/components/signup/signup.component.html @@ -1,8 +1,16 @@ <p>Signup:</p> <input placeholder="Username" type="text" #username> <input placeholder="Password" type="password" (input)="checkPasswordStrength(password.value)" #password> -<button type="button" (click)="signup(username.value, password.value)">Create Account</button> +<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> +</span> + <span *ngIf="statusText">{{statusText | async}}</span> <span *ngIf="strength">{{strength | async}}</span> <span *ngIf="showSuccessMessage | async">Account created <a routerLink="/login">Proceed to login</a></span> |