@Override
    public boolean unlockAccount(final Credential credential) {
        val account = jsonBackedAccounts.getOrDefault(credential.getId(), null);
        if (account != null && "locked".equalsIgnoreCase(account.getStatus())) {
            account.setStatus("OK");
            writeAccountToJsonResource();
        }
        return true;
    }
This is {@link JsonResourcePasswordManagementService}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-pm-core/src/main/java/org/apereo/cas/pm/impl/JsonResourcePasswordManagementService.java