mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-04 05:12:16 +00:00
feat(console): set email verified on org creation, disable svg upload, password page optimizations (#4149)
* feat: set email verified on org creation * catch svg files and throw error * password changes * passwordpage * rm log * it * fr * localhost env * Update fr.json Co-authored-by: Fabi <[email protected]> Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
co-authored by
Fabi
Livio Spring
parent
e39d82c031
commit
cbb5e90bac
@@ -33,7 +33,7 @@ export class ToastService {
|
||||
}
|
||||
}
|
||||
|
||||
public showError(error: any | string, isGrpc: boolean = true): void {
|
||||
public showError(error: any | string, isGrpc: boolean = true, i18nKey: boolean = false): void {
|
||||
if (isGrpc) {
|
||||
const { message, code, metadata } = error;
|
||||
if (code !== 16) {
|
||||
@@ -44,6 +44,13 @@ export class ToastService {
|
||||
this.showMessage(decodeURI(message), value, false);
|
||||
});
|
||||
}
|
||||
} else if (i18nKey) {
|
||||
this.translate
|
||||
.get(error)
|
||||
.pipe(take(1))
|
||||
.subscribe((value) => {
|
||||
this.showMessage(value, '', false);
|
||||
});
|
||||
} else {
|
||||
this.showMessage(error as string, '', false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user