[feat] - add authen and display transaction data

This commit is contained in:
2023-11-02 18:56:12 +07:00
parent 21af45bfa6
commit 0c5cf749bb
19 changed files with 355 additions and 34 deletions

View File

@@ -9,14 +9,14 @@
<form #ngf="ngForm" (ngSubmit)="onSubmit(ngf)">
<div class="auth-card-body">
<mat-form-field>
<input matInput type="text" name="loginname" [(ngModel)]="dataForm.loginname" #loginname="ngModel"
<input matInput type="text" name="loginname" [(ngModel)]="cathayForm.userName" #loginname="ngModel"
placeholder="Username" required>
<i matSuffix class="bi bi-person-circle"></i>
<mat-error *ngIf="isFieldValid(ngf, loginname)">กรุณากรอกข้อมูล</mat-error>
</mat-form-field>
<div style="height: 10px;"></div>
<mat-form-field>
<input matInput type="password" name="password" [(ngModel)]="dataForm.password"
<input matInput type="password" name="password" [(ngModel)]="cathayForm.password"
#password="ngModel" placeholder="Password" required>
<i matSuffix class="bi bi-key"></i>
<mat-error *ngIf="isFieldValid(ngf, password)">กรุณากรอกข้อมูล</mat-error>
@@ -34,4 +34,4 @@
</form>
</div>
</div>
</div>
</div>