Commit 06e02882 authored by Lukas Burgey's avatar Lukas Burgey

Fix display of auth errors

parent 1ec4c3e6
......@@ -107,6 +107,7 @@ export interface User {
export interface Session {
deactivated?: boolean;
auth_error?: string;
}
export interface State {
......
......@@ -202,12 +202,15 @@ export class UserService {
if (update.msg) {
this.snackBar.open(update.msg);
}
if (update.session && update.session.deactivated) {
this.autoReLogin = false;
if (update.session) {
if (update.session.deactivated) {
this.autoReLogin = false;
}
if (update.session.auth_error) {
this.snackBar.open(update.session.auth_error);
}
}
console.log(update.session);
this.user = update.user;
this.user$.next(this.user);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment