From 5b6b059b4065617c9a18924784a00b90c2c9890a Mon Sep 17 00:00:00 2001 From: Jens L Date: Mon, 26 Feb 2024 13:03:10 +0100 Subject: [PATCH] core: fix blueprint export (#8695) * core: fix error when exporting blueprint Signed-off-by: Jens Langhammer * also slightly reword source selection Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer --- authentik/core/api/users.py | 4 ++-- web/src/flow/stages/identification/IdentificationStage.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/authentik/core/api/users.py b/authentik/core/api/users.py index 79bb389bf4..140963e5e9 100644 --- a/authentik/core/api/users.py +++ b/authentik/core/api/users.py @@ -154,7 +154,7 @@ class UserSerializer(ModelSerializer): def get_avatar(self, user: User) -> str: """User's avatar, either a http/https URL or a data URI""" - return get_avatar(user, self.context["request"]) + return get_avatar(user, self.context.get("request")) def validate_path(self, path: str) -> str: """Validate path""" @@ -218,7 +218,7 @@ class UserSelfSerializer(ModelSerializer): def get_avatar(self, user: User) -> str: """User's avatar, either a http/https URL or a data URI""" - return get_avatar(user, self.context["request"]) + return get_avatar(user, self.context.get("request")) @extend_schema_field( ListSerializer( diff --git a/web/src/flow/stages/identification/IdentificationStage.ts b/web/src/flow/stages/identification/IdentificationStage.ts index 65b30a73c9..d5890d014a 100644 --- a/web/src/flow/stages/identification/IdentificationStage.ts +++ b/web/src/flow/stages/identification/IdentificationStage.ts @@ -207,7 +207,7 @@ export class IdentificationStage extends BaseStage< renderInput(): TemplateResult { let type: "text" | "email" = "text"; if (!this.challenge?.userFields || this.challenge.userFields.length === 0) { - return html`

${msg("Select one of the sources below to login.")}

`; + return html`

${msg("Select one of the options below to continue.")}

`; } const fields = (this.challenge?.userFields || []).sort(); // Check if the field should be *only* email to set the input type