Package com.baasbox.dao.exception

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


    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

TOP

Related Classes of com.baasbox.dao.exception.ResetPasswordException

Copyright © 2018 www.massapicom. 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.