UserDao.getUserById(userVo.id, function(response) { UserDao.updateUserPassword(userVo.id, Utils.encrypt(userVo.password, encryptKey), function(response) { res.end(JSON.stringify({code : _code.SUCCESS, data : _code.SUCCESS, msg : "SUCCESS"})); }); });
UserDao.getEncryptKey("admin", function(encryptKey) { var password = Utils.encrypt("admin", encryptKey); UserDao.updateUserPassword("admin", password, function(response) { res.end(JSON.stringify({code : _code.SUCCESS})); }); });