fix: 🐛 Do not display remember me when prompt=consnet

Also updated text for checkbox
pull/1580/head
Dominik Frantisek Bucik 2022-01-10 08:47:48 +01:00
parent 7877e18f6a
commit 1bf72b802a
No known key found for this signature in database
GPG Key ID: 25014C8DB2E7E62D
4 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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 />

View File

@ -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);