Commit 7884baf8 authored by Emily Jensen's avatar Emily Jensen

Got one error state to work

parent 79348249
Pipeline #37173140 failed with stage
in 7 minutes and 43 seconds
...@@ -61,9 +61,22 @@ ...@@ -61,9 +61,22 @@
<label [for]="form.controls.code.id" class="form-field__label"> <label [for]="form.controls.code.id" class="form-field__label">
Type Backup Code Type Backup Code
</label> </label>
<input type="email" [ngrxFormControlState]="form.controls.code" autofocus spellcheck="false" class="form-field__input" <input
[class.form-field__input--invalid]="form.errors._code && form.isSubmitted" [class.form-field__input--valid]="!form.errors._code" /> type="text"
</div> [ngrxFormControlState]="form.controls.code"
autofocus
spellcheck="false"
class="form-field__input"
[class.form-field__input--invalid]="form.errors._code && form.isSubmitted"
/>
</div>
<ul *ngIf="form.errors._code && form.isSubmitted" class="form-field__error-list">
<li *ngIf="form.errors._code.minLength" class="form-field__error">
The QR code provided a backup code that did not work.
</li>
</ul>
<div class="verify-backup-code__actions"> <div class="verify-backup-code__actions">
<button id="loginSubmit" class="button button--large button--green" [disabled]="hasStarted" type="submit"> <button id="loginSubmit" class="button button--large button--green" [disabled]="hasStarted" type="submit">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment