Example #1
0
				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"}));
					});
				});
Example #2
0
		UserDao.getEncryptKey("admin", function(encryptKey)
		{
			var password = Utils.encrypt("admin", encryptKey);
			UserDao.updateUserPassword("admin", password, function(response)
			{
				res.end(JSON.stringify({code : _code.SUCCESS}));
			});
		});