mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-26 06:29:30 +00:00
fix: hide / show username suffix correctly on registration pages (#4097)
This commit is contained in:
@@ -28,3 +28,10 @@ func (l *Login) getLoginPolicy(r *http.Request, orgID string) (*query.LoginPolic
|
||||
}
|
||||
return l.query.LoginPolicyByID(r.Context(), false, orgID)
|
||||
}
|
||||
|
||||
func (l *Login) getLabelPolicy(r *http.Request, orgID string) (*query.LabelPolicy, error) {
|
||||
if orgID == "" {
|
||||
return l.query.DefaultActiveLabelPolicy(r.Context())
|
||||
}
|
||||
return l.query.ActiveLabelPolicyByOrg(r.Context(), orgID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user