protected void Page_Load(object sender, EventArgs e)
    {
        String data = Request.Params.Get("data");

        if (data != null)
        {
            data = CryptoUtils.desencriptarAES(data);
            String user = data.Split(',')[0];
            String pass = data.Split(',')[1];
            if (user != null && pass != null)
            {
                SeguridadUtiles.cambiarPassword(user, pass);
            }
            Response.Redirect("Login.aspx");
        }
    }
Beispiel #2
0
 public static void restaurarPassword(String user, String password, HttpResponse response)
 {
     SeguridadUtiles.cambiarPassword(user, password);
     response.Redirect("Login.aspx");
 }