diff options
| author | 杨宇千 <crupest@outlook.com> | 2019-04-11 20:02:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-11 20:02:33 +0800 |
| commit | 1eb6d9abfc24eec380b7b5d7423102a53041239e (patch) | |
| tree | d37779e900de492491c862eb64ba2e79cf10af83 /Timeline/ClientApp/src/app/user/user-login/user-login.component.html | |
| parent | 393ca55a960abc7d2343a8a36a093d253eddf134 (diff) | |
| parent | d328e1eac76d9e28563b118e42f8ee5cf5fe43d8 (diff) | |
| download | timeline-1eb6d9abfc24eec380b7b5d7423102a53041239e.tar.gz timeline-1eb6d9abfc24eec380b7b5d7423102a53041239e.tar.bz2 timeline-1eb6d9abfc24eec380b7b5d7423102a53041239e.zip | |
Merge pull request #17 from crupest/15-user
Remember me and log out feature.
Diffstat (limited to 'Timeline/ClientApp/src/app/user/user-login/user-login.component.html')
| -rw-r--r-- | Timeline/ClientApp/src/app/user/user-login/user-login.component.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Timeline/ClientApp/src/app/user/user-login/user-login.component.html b/Timeline/ClientApp/src/app/user/user-login/user-login.component.html index b1dd289d..7398ece7 100644 --- a/Timeline/ClientApp/src/app/user/user-login/user-login.component.html +++ b/Timeline/ClientApp/src/app/user/user-login/user-login.component.html @@ -1,8 +1,8 @@ <form [formGroup]="form"> <ng-container *ngIf="message" [ngSwitch]="message"> - <p *ngSwitchCase="'nologin'" class="mat-body no-login-message">You haven't login.</p> - <p *ngSwitchCase="'invalidlogin'" class="mat-body invalid-login-message">Your login is no longer valid.</p> - <p *ngSwitchDefault class="mat-body error-message">{{ message }}</p> + <p *ngSwitchCase="'nologin'" class="mat-h3 no-login-message">You haven't login.</p> + <p *ngSwitchCase="'invalidlogin'" class="mat-h3 invalid-login-message">Your login is no longer valid.</p> + <p *ngSwitchDefault class="mat-h3 error-message">{{ message }}</p> </ng-container> <mat-form-field> <mat-label>Username</mat-label> @@ -13,6 +13,7 @@ <mat-label>Password</mat-label> <input formControlName="password" matInput type="password" /> </mat-form-field> + <mat-checkbox formControlName="rememberMe">Remember me!</mat-checkbox> <div class="w-100"></div> <button mat-flat-button class="login-button" (appDebounceClick)="onLoginButtonClick()">Login</button> </form> |
