Examples of ResetPasswordException


Examples of com.baasbox.dao.exception.ResetPasswordException

    return result;
  }
 
  public String setTokenStep2 (String username,String appCode) throws ResetPasswordException{
    ODocument resetRecord = getCurrentResetRecord(username);
    if (resetRecord==null) throw new ResetPasswordException("No reset record found");
    String sRandom = appCode + "%%%%" + username + "%%%%" + UUID.randomUUID();
    String sBase64Random = new String(Base64.encodeBase64(sRandom.getBytes()));
   
    resetRecord.field(ATTRIBUTES_BASE64CODE_STEP2,sBase64Random);
    resetRecord.save();
View Full Code Here

Examples of com.baasbox.dao.exception.ResetPasswordException

    return sBase64Random;
  }
 
  public ODocument setResetPasswordDone(String username) throws ResetPasswordException  {
    ODocument resetRecord = getCurrentResetRecord(username);
    if (resetRecord==null) throw new ResetPasswordException("No reset record found");
   
    if (resetRecord != null) {
      resetRecord.field(ATTRIBUTES_COMPLETED_DATE, new Date());
      resetRecord.save();
    }
View Full Code Here

Examples of org.mifosplatform.infrastructure.security.exception.ResetPasswordException

            }
        }

        if (currentUser == null) { throw new UnAuthenticatedUserException(); }

        if (this.doesPasswordHasToBeRenewed(currentUser)) { throw new ResetPasswordException(currentUser.getId()); }

        return currentUser;
    }
View Full Code Here

Examples of org.mifosplatform.infrastructure.security.exception.ResetPasswordException

            }
        }

        if (currentUser == null) { throw new UnAuthenticatedUserException(); }

        if (this.shouldCheckForPasswordForceReset(commandWrapper) && this.doesPasswordHasToBeRenewed(currentUser)) { throw new ResetPasswordException(
                currentUser.getId()); }

        return currentUser;

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.