예제 #1
0
        /// <summary>
        /// Cambiar el password de un usuario
        /// </summary>
        /// <param name="pUserName">Nombre de usuario</param>
        /// <param name="pNewPassword">Password Nuevo</param>
        internal static void UserResetPassword(String pUserName, String pPassword)
        {
            ResetUserPasswordReq req = new ResetUserPasswordReq();

            req.BusinessData.UserName = pUserName;

            req.BusinessData.NewPassword = pPassword;
            ResetUserPasswordRes res = req.ExecuteService <ResetUserPasswordReq, ResetUserPasswordRes>(WrapperSecurityProvider, req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }
        }
예제 #2
0
        /// <summary>
        /// Cambiar el password de un usuario
        /// </summary>
        /// <param name="pUserName">Nombre de usuario</param>
        /// <param name="pNewPassword">Password Nuevo</param>
        internal static void UserResetPassword(String pUserName, String pPassword)
        {

            ResetUserPasswordReq req = new ResetUserPasswordReq();
   
            req.BusinessData.UserName = pUserName;

            req.BusinessData.NewPassword = pPassword;
            ResetUserPasswordRes res = req.ExecuteService<ResetUserPasswordReq, ResetUserPasswordRes>(WrapperSecurityProvider, req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }

        }