Exemple #1
0
        public void changePassword(UserModels model, Guid ticket)
        {
            ProjektGlowny.LoginService1.ILoginService         loginService  = new ProjektGlowny.LoginService1.LoginServiceClient();
            ProjektGlowny.LoginService1.ChangePasswordRequest changePassReq = new ProjektGlowny.LoginService1.ChangePasswordRequest();

            changePassReq.OldPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(model.oldPassword, "SHA1");
            changePassReq.NewPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(model.Password, "SHA1");
            changePassReq.TicketId    = ticket;

            try
            {
                loginService.ChangePassword(changePassReq);
            }
            catch (Exception ex) { }
        }
 public System.Threading.Tasks.Task ChangePasswordAsync(ProjektGlowny.LoginService1.ChangePasswordRequest request)
 {
     return(base.Channel.ChangePasswordAsync(request));
 }
 public void ChangePassword(ProjektGlowny.LoginService1.ChangePasswordRequest request)
 {
     base.Channel.ChangePassword(request);
 }