diff --git a/frontend/src/app/admin/user/user-update/user-management-update.component.html b/frontend/src/app/admin/user/user-update/user-management-update.component.html
index da2a77e4e..940c3cdd3 100644
--- a/frontend/src/app/admin/user/user-update/user-management-update.component.html
+++ b/frontend/src/app/admin/user/user-update/user-management-update.component.html
@@ -77,9 +77,13 @@
+
diff --git a/frontend/src/app/shared/components/auth/login/login.component.ts b/frontend/src/app/shared/components/auth/login/login.component.ts
index 8b6d2b8fc..ecce7d487 100644
--- a/frontend/src/app/shared/components/auth/login/login.component.ts
+++ b/frontend/src/app/shared/components/auth/login/login.component.ts
@@ -10,7 +10,7 @@ import {LoginService} from '../../../../core/login/login.service';
import {UtmToastService} from '../../../alert/utm-toast.service';
import {MenuBehavior} from '../../../behaviors/menu.behavior';
import {ThemeChangeBehavior} from '../../../behaviors/theme-change.behavior';
-import {ADMIN_DEFAULT_EMAIL, ADMIN_ROLE, DEMO_URL} from '../../../constants/global.constant';
+import {ADMIN_DEFAULT_EMAIL, ADMIN_ROLE, DEMO_URL, USER_ROLE} from '../../../constants/global.constant';
import {stringParamToQueryParams} from '../../../util/query-params-to-filter.util';
import {PasswordResetInitComponent} from '../password-reset/init/password-reset-init.component';
@@ -27,6 +27,7 @@ export class LoginComponent implements OnInit, AfterViewInit {
credentials: any;
formLogin: FormGroup;
logged = false;
+ roles = [ADMIN_ROLE, USER_ROLE];
startLogin = false;
isInDemo: boolean;
loadingAuth = true;
@@ -171,11 +172,14 @@ export class LoginComponent implements OnInit, AfterViewInit {
? '/getting-started' : '/dashboard/overview';
this.router.navigate([redirectTo])
.then(() => this.spinner.hide());
+ } else {
+ this.logged = false;
+ this.utmToast.showError('Login error', 'User without privileges.');
}
});
}
- startInternalNavigation(){
+ startInternalNavigation() {
this.router.navigate(['/dashboard/overview']);
}