style(login): format code and improve readability
This commit is contained in:
parent
739475ffcf
commit
e3f35699b7
1 changed files with 5 additions and 2 deletions
|
@ -38,7 +38,7 @@ export class LoginComponent {
|
||||||
constructor(
|
constructor(
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private snackBar: MatSnackBar,
|
private snackBar: MatSnackBar,
|
||||||
) { }
|
) {}
|
||||||
|
|
||||||
private validationErrorMessages: Record<string, string> = {
|
private validationErrorMessages: Record<string, string> = {
|
||||||
required: 'This field is required',
|
required: 'This field is required',
|
||||||
|
@ -80,7 +80,10 @@ export class LoginComponent {
|
||||||
loginWithAuthentik() {
|
loginWithAuthentik() {
|
||||||
this.pb
|
this.pb
|
||||||
.collection('users')
|
.collection('users')
|
||||||
.authWithOAuth2({ provider: 'oidc', scopes: ['openid', 'email', 'profile', 'avatar'] })
|
.authWithOAuth2({
|
||||||
|
provider: 'oidc',
|
||||||
|
scopes: ['openid', 'email', 'profile', 'avatar'],
|
||||||
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.router.navigate(['dashboard']);
|
this.router.navigate(['dashboard']);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue