export DB, Event creation, broker with city/state

This commit is contained in:
2024-09-12 15:13:56 +02:00
parent 60866473f7
commit 68d2615f0f
21 changed files with 242 additions and 40 deletions

View File

@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
import { Router, RouterModule } from '@angular/router';
import { KeycloakService } from 'keycloak-angular';
import { User } from '../../../../../bizmatch-server/src/models/db.model';
import { LogService } from '../../services/log.service';
import { AuditService } from '../../services/audit.service';
import { UserService } from '../../services/user.service';
import { map2User } from '../../utils/utils';
@@ -18,7 +18,7 @@ export class SuccessComponent {
user: User;
maxAttemptsReached: boolean = false; // Neue Variable hinzufügen
constructor(private keycloakService: KeycloakService, private userService: UserService, private logService: LogService, private router: Router) {}
constructor(private keycloakService: KeycloakService, private userService: UserService, private auditService: AuditService, private router: Router) {}
async ngOnInit() {
let email = null;
@@ -35,7 +35,7 @@ export class SuccessComponent {
async checkSubscriptionPlan(email: string, error?: string) {
if (!email) {
this.logService.log({ severity: 'error', text: `Unauthorized Access to Success Page ${error}` });
this.auditService.log({ severity: 'error', text: `Unauthorized Access to Success Page ${error}` });
this.router.navigate(['home']);
return;
}