mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 21:47:23 +00:00
fix(console): auth guard, i18n (#1296)
* fix: auth guard, i18n * Update console/src/app/guards/auth.guard.ts Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
This commit is contained in:
parent
27be460c07
commit
f01921371c
@ -17,9 +17,7 @@ export class AuthGuard implements CanActivate {
|
|||||||
state: RouterStateSnapshot,
|
state: RouterStateSnapshot,
|
||||||
): Observable<boolean> | Promise<boolean> | Promise<any> | boolean {
|
): Observable<boolean> | Promise<boolean> | Promise<any> | boolean {
|
||||||
if (!this.auth.authenticated) {
|
if (!this.auth.authenticated) {
|
||||||
return this.auth.authenticate().then(() => {
|
return this.auth.authenticate();
|
||||||
return this.authService.GetActiveOrg();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
return this.auth.authenticated;
|
return this.auth.authenticated;
|
||||||
}
|
}
|
||||||
|
@ -9,16 +9,16 @@
|
|||||||
"STEPS_TITLE":"Complete the following steps in the order you want:",
|
"STEPS_TITLE":"Complete the following steps in the order you want:",
|
||||||
"STEPS": {
|
"STEPS": {
|
||||||
"1": {
|
"1": {
|
||||||
"TITLE":"Projekt erstellen",
|
"TITLE":"Create a project",
|
||||||
"DESC":"Erstellen Sie Ihr erstes Projekt und legen Sie Zugangsberechtigungen eventueller Mitarbeiter fest."
|
"DESC":"Create your first project and define access rights for any employees."
|
||||||
},
|
},
|
||||||
"2": {
|
"2": {
|
||||||
"TITLE":"Applikation erstellen",
|
"TITLE":"Create Application",
|
||||||
"DESC":"Erstellen Sie eine Applikation innerhalb Ihres Projektes und legen Sie dessen Eigenschaften fest."
|
"DESC":"Create an application within your project and define its properties."
|
||||||
},
|
},
|
||||||
"3": {
|
"3": {
|
||||||
"TITLE":"Sicherheit verbessern",
|
"TITLE":"Improve security",
|
||||||
"DESC":"Erweitern Sie die Zugangsrichtlinien und erhöhen Sie dadurch die Sicherheit ihrer Benutzer."
|
"DESC":"Extend the access policies and thereby increase the security of your users."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"START":"Start",
|
"START":"Start",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user