code: public void unlockUser(CmsObject cms, CmsUser user) throws CmsRoleViolationException {
  
          OpenCms.getRoleManager().checkRole(cms, CmsRole.ACCOUNT_MANAGER.forOrgUnit(cms.getRequestContext().getOuFqn()));
          Set<String> keysToRemove = getKeysForUser(user);
          for (String keyToRemove : keysToRemove) {
              m_storage.remove(keyToRemove);
          }
      }
docs: Unlocks a user who has exceeded his number of failed login attempts so that he can try to log in again.<p>
  This requires the "account manager" role.
  
  @param cms the current CMS context
  @param user the user to unlock
  
  @throws CmsRoleViolationException if the permission check fails