style: format HTML and TypeScript files for consistency
This commit is contained in:
parent
cb658a7721
commit
56cb68a3ce
4 changed files with 17 additions and 10 deletions
|
@ -13,7 +13,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|||
import { MatInputModule, MatLabel } from '@angular/material/input';
|
||||
import { MatButton, MatButtonModule } from '@angular/material/button';
|
||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||
import {MatDividerModule} from '@angular/material/divider';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
|
||||
@Component({
|
||||
selector: 'app-login',
|
||||
|
@ -38,7 +38,7 @@ export class LoginComponent {
|
|||
constructor(
|
||||
private router: Router,
|
||||
private snackBar: MatSnackBar,
|
||||
) { }
|
||||
) {}
|
||||
|
||||
private validationErrorMessages: Record<string, string> = {
|
||||
required: 'This field is required',
|
||||
|
@ -78,7 +78,9 @@ export class LoginComponent {
|
|||
}
|
||||
|
||||
loginWithAuthentik() {
|
||||
this.pb.collection('users').authWithOAuth2({ provider: 'oidc' })
|
||||
this.pb
|
||||
.collection('users')
|
||||
.authWithOAuth2({ provider: 'oidc' })
|
||||
.then(() => {
|
||||
this.router.navigate(['dashboard']);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue