core: fix blueprint export (#8695)
* core: fix error when exporting blueprint Signed-off-by: Jens Langhammer <jens@goauthentik.io> * also slightly reword source selection Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -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(
|
||||
|
@ -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`<p>${msg("Select one of the sources below to login.")}</p>`;
|
||||
return html`<p>${msg("Select one of the options below to continue.")}</p>`;
|
||||
}
|
||||
const fields = (this.challenge?.userFields || []).sort();
|
||||
// Check if the field should be *only* email to set the input type
|
||||
|
Reference in New Issue
Block a user