Example #1
0
 /*
  * for Encrypt password
  */
 public boolean encryptPassword(UserInfo userInfo) {
   UserMapper userMapper = sqlSession.getMapper(UserMapper.class);
   if (userMapper != null) {
     try {
       userMapper.encryptSha512(userInfo);
       return true;
     } catch (Exception e) {
       e.toString();
       return false;
     }
   } else {
     return false;
   }
 }
Example #2
0
 public boolean approveReq(int uidx) {
   UserMapper userMapper = sqlSession.getMapper(UserMapper.class);
   if (userMapper != null) {
     try {
       userMapper.approveRequest(uidx);
       userMapper.updateUpdate(uidx);
       userMapper.deleteRequest(uidx);
       return true;
     } catch (Exception e) {
       e.toString();
       return false;
     }
   } else {
     return false;
   }
 }