protected void btnAceptar3_Click(object sender, EventArgs e) { try { this.ValidarClaves(); //Modificado 27 / 08 / 2018 por Liliana Guerra clave mayuscula //if (HelperLogons.ActualizarClaveLogin(this.afi.nAF_Id, this.afi.sAF_Password, this.txtClave.Text.Trim(), this.afi.AF_DiasPassword, WebUtils.GetClientIP(this), 0)) if (HelperLogons.ActualizarClaveLogin(this.afi.nAF_Id, this.afi.sAF_Password, this.txtClave.Text.Trim().ToUpper(), this.afi.AF_DiasPassword, WebUtils.GetClientIP(this), 0)) { HelperLogons.ActivarUsuario(this.afi.nAF_Id); this.liMensaje1.Text = "Recuperación de Clave realizada Satisfactoriamente"; this.liMensaje2.Text = "Por seguridad te recomendamos cambiar periódicamente tus claves"; } else { this.liMensaje1.Text = "Problemas para realizar la Recuperación de Clave"; this.liMensaje2.Text = "Por favor intenta más tarde"; } this.panelClave.Visible = false; this.panelExito.Visible = true; } catch (PoliticaUsuarioClave.ErrorClaveException errorClaveException) { WebUtils.MessageBox(this, errorClaveException.Message); } catch (IBException bException) { WebUtils.MessageBox2005(this, bException.IBMessage); } catch (Exception exception) { WebUtils.MessageBox2005(this, exception.Message); } }
protected void btnConfirmar_Click(object sender, EventArgs e) { try { this.ValidarClaves(); //Modificado 27/08/2018 por Liliana Guerra clave a mayuscula //if (HelperLogons.ActualizarClaveLogin(this.Afiliado.nAF_Id, this.Afiliado.sAF_Password, this.txtPassNew.Text.Trim(), int.Parse(this.ddlDiasCaducidad.SelectedValue), this.Afiliado.sIP, this.sCod)) if (HelperLogons.ActualizarClaveLogin(this.Afiliado.nAF_Id, this.Afiliado.sAF_Password, this.txtPassNew.Text.Trim().ToUpper(), int.Parse(this.ddlDiasCaducidad.SelectedValue), this.Afiliado.sIP, this.sCod)) { this.LogCaducoClave(" Exitoso"); this.liMensaje1.Text = "Cambio de Clave realizada Satisfactoriamente"; this.liMensaje2.Text = "Por seguridad te recomendamos cambiar periódicamente tus claves"; HelperEnvioCorreo.BuscarCamposCorreo(37, this.Afiliado.sCO_Nombres.ToUpper(), this.Afiliado.CO_Email, new decimal(0), "", "", "", this.Afiliado.sCO_Nombres, "", "", "", "", "", "", "", "", "", ""); } else { this.LogCaducoClave(" Fallido"); this.liMensaje1.Text = "Problemas para realizar el Cambio de Clave"; this.liMensaje2.Text = "Por favor intenta más tarde"; } this.liMensaje.Visible = false; this.panelClaves.Visible = false; this.panelResultado.Visible = true; } catch (PoliticaUsuarioClave.ErrorClaveException errorClaveException) { WebUtils.MessageBox(this, errorClaveException.Message); } catch (IBException bException) { WebUtils.MessageBox2005(this, bException.IBMessage); } catch (Exception exception) { WebUtils.MessageBox2005(this, exception.Message); } }