main #13

Merged
jank merged 4 commits from main into prod 2025-01-21 14:39:33 +00:00
Showing only changes of commit e3f35699b7 - Show all commits

View file

@ -38,7 +38,7 @@ export class LoginComponent {
constructor(
private router: Router,
private snackBar: MatSnackBar,
) { }
) {}
private validationErrorMessages: Record<string, string> = {
required: 'This field is required',
@ -80,7 +80,10 @@ export class LoginComponent {
loginWithAuthentik() {
this.pb
.collection('users')
.authWithOAuth2({ provider: 'oidc', scopes: ['openid', 'email', 'profile', 'avatar'] })
.authWithOAuth2({
provider: 'oidc',
scopes: ['openid', 'email', 'profile', 'avatar'],
})
.then(() => {
this.router.navigate(['dashboard']);
})