Skip to content

Commit

Permalink
fix test and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Jan 12, 2024
1 parent c9be642 commit a0de0b5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ <h1 i18n="@@reset.finish.title.string">Reset password</h1>
<span i18n="@@reset.finish.messages.success.string"
><strong>Your password has been reset.</strong> Please
</span>
<a class="alert-link" (click)="login()" i18n="@@global.messages.info.authenticated.link.string">sign in</a>.
<a
class="alert-link"
tabindex="0"
(click)="login()"
(keydown.enter)="login()"
i18n="@@global.messages.info.authenticated.link.string"
>sign in</a
>.
</p>

<div class="alert alert-danger" *ngIf="doNotMatch" i18n="@@global.messages.error.dontmatch.string">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { PasswordResetFinishComponent } from './password-reset-finish.component';
import { AppModule } from 'src/app/app.module';

describe('PasswordResetFinishComponent', () => {
let component: PasswordResetFinishComponent;
let fixture: ComponentFixture<PasswordResetFinishComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
imports: [AppModule],
declarations: [PasswordResetFinishComponent]
});
fixture = TestBed.createComponent(PasswordResetFinishComponent);
Expand Down
10 changes: 5 additions & 5 deletions ui/src/app/account/password/password-reset-finish.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import { ActivatedRoute, Router } from '@angular/router'
export class PasswordResetFinishComponent implements OnInit, AfterViewInit {
doNotMatch: string | undefined
error: string | undefined
keyMissing: boolean = false
success: string | undefined
key: string | undefined
invalidKey: boolean = false
expiredKey: boolean = false
activationEmailResent: boolean = false
showPasswordForm: boolean = false
invalidKey = false
keyMissing = false
expiredKey = false
activationEmailResent = false
showPasswordForm = false

passwordForm = this.fb.group({
newPassword: ['', [Validators.required, Validators.minLength(4), Validators.maxLength(50)]],
Expand Down

0 comments on commit a0de0b5

Please sign in to comment.