Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Oct 26, 2023
1 parent 4c6ad62 commit aa3f186
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions ui/src/app/account/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ export class LoginComponent implements AfterViewInit, OnDestroy {
this.mfaSent = true
}


this.loginService
.login({
username: this.loginForm.get('username')?.value!,
password: this.loginForm.get('password')?.value!,
username: this.loginForm.get('username')!.value!,

Check warning on line 78 in ui/src/app/account/login/login.component.ts

View workflow job for this annotation

GitHub Actions / format

Forbidden non-null assertion

Check warning on line 78 in ui/src/app/account/login/login.component.ts

View workflow job for this annotation

GitHub Actions / format

Forbidden non-null assertion
password: this.loginForm.get('password')!.value!,

Check warning on line 79 in ui/src/app/account/login/login.component.ts

View workflow job for this annotation

GitHub Actions / format

Forbidden non-null assertion

Check warning on line 79 in ui/src/app/account/login/login.component.ts

View workflow job for this annotation

GitHub Actions / format

Forbidden non-null assertion
mfaCode: this.loginForm.get('mfaCode')?.value,
})
.subscribe({
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/account/model/login.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface ILoginResult {
}

export interface ILoginCredentials {
username?: string
password?: string
username: string
password: string
mfaCode?: string | null
}
2 changes: 1 addition & 1 deletion ui/src/app/shared/directive/has-any-authority.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { AccountService } from 'src/app/account/service/account.service'
* ```
*/
@Directive({
selector: '[hasAnyAuthority]',
selector: '[appHasAnyAuthority]',
})
export class HasAnyAuthorityDirective {
private authorities: string[] = []
Expand Down

0 comments on commit aa3f186

Please sign in to comment.