fix: 🐛 Do not display remember me when prompt=consnet
Also updated text for checkboxpull/1580/head
parent
7877e18f6a
commit
1bf72b802a
|
@ -5,7 +5,7 @@ login=Login
|
|||
consent_privacy_policy=Zásady zpracování osobních údajů pro službu
|
||||
consent_header=Obsah odesílaných osobních informací službě
|
||||
consent_title=Obsah odesílaných osobních informací službě
|
||||
remember=Příště se již neptat
|
||||
remember=Zapamatovat
|
||||
|
||||
#APPROVE_DEVICE
|
||||
device_approve_privacy=Bezpečnostní politika služby
|
||||
|
|
|
@ -5,7 +5,7 @@ login=login
|
|||
consent_privacy_policy=Privacy policy for the service
|
||||
consent_header=Consent about releasing personal information to service
|
||||
consent_title=Consent about releasing personal information to service
|
||||
remember=Do not ask again
|
||||
remember=Remember
|
||||
|
||||
#APPROVE_DEVICE
|
||||
device_approve_privacy=Privacy policy for the service
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
</c:if>
|
||||
</p>
|
||||
<t:attributesConsent />
|
||||
<c:if test="${rememberEnabled}">
|
||||
<div class="row" id="saveconsentcontainer">
|
||||
<div class="col-xs-12">
|
||||
<div class="checkbox">
|
||||
|
@ -48,6 +49,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</c:if>
|
||||
<input id="user_oauth_approval" name="user_oauth_approval" value="true" type="hidden" />
|
||||
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
|
||||
<t:consentButtons />
|
||||
|
|
|
@ -90,6 +90,7 @@ public class OAuthConfirmationController {
|
|||
public static final String CONSENT = "consent";
|
||||
public static final String THEMED_APPROVE = "themedApprove";
|
||||
public static final String APPROVE = "approve";
|
||||
public static final String REMEMBER_ENABLED = "rememberEnabled";
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
|
@ -165,6 +166,7 @@ public class OAuthConfirmationController {
|
|||
model.put(AUTH_REQUEST, authRequest);
|
||||
model.put(CLIENT, client);
|
||||
model.put(REDIRECT_URI, authRequest.getRedirectUri());
|
||||
model.put(REMEMBER_ENABLED, !prompts.contains(CONSENT));
|
||||
|
||||
Set<SystemScope> sortedScopes = ControllerUtils.getSortedScopes(authRequest.getScope(), scopeService);
|
||||
model.put(SCOPES, sortedScopes);
|
||||
|
|
Loading…
Reference in New Issue