Skip to content

Commit

Permalink
Fix login page
Browse files Browse the repository at this point in the history
Task can no longer be null when calling model API.
  • Loading branch information
mederly committed Dec 20, 2021
1 parent a56b56d commit 6a2c7b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ public String getObject() {
add(form);

BookmarkablePageLink<String> link = new BookmarkablePageLink<>(ID_FORGET_PASSWORD, PageForgotPassword.class);
Task task = createAnonymousTask(OPERATION_LOAD_RESET_PASSWORD_POLICY);
OperationResult parentResult = new OperationResult(OPERATION_LOAD_RESET_PASSWORD_POLICY);
SecurityPolicyType securityPolicy = null;
try {
securityPolicy = getModelInteractionService().getSecurityPolicy((PrismObject<? extends FocusType>) null, null, parentResult);
securityPolicy = getModelInteractionService().getSecurityPolicy((PrismObject<? extends FocusType>) null, task, parentResult);
} catch (CommonException e) {
LOGGER.warn("Cannot read credentials policy: " + e.getMessage(), e);
}
Expand Down

0 comments on commit 6a2c7b7

Please sign in to comment.