-
+
diff --git a/GPW_Smart/WebUserControls/mod_title.ascx.cs b/GPW_Smart/WebUserControls/mod_title.ascx.cs
index dab44f9..afba071 100644
--- a/GPW_Smart/WebUserControls/mod_title.ascx.cs
+++ b/GPW_Smart/WebUserControls/mod_title.ascx.cs
@@ -26,7 +26,6 @@ namespace GPW.WebUserControls
checkUser();
// sistemo visualizzazione
postazione_IP = Request.UserHostName;
- lblIpData.Text = postazione_IP;
try
{
lblSwData.Text = memLayer.ML.StringSessionObj("cognomeNome");
@@ -59,7 +58,7 @@ namespace GPW.WebUserControls
if (cookie == null || cookie.Value=="")
{
// rimando pagina x registrazione devices
- Response.Redirect("~/A3/regNewDevice.aspx");
+ Response.Redirect("~/regNewDevice.aspx");
}
else
{
@@ -89,21 +88,27 @@ namespace GPW.WebUserControls
// salvo in sessione utente
memLayer.ML.setSessionVal("idxDipendente", idxDipendente);
string CognomeNome = "";
+ string email = "";
+ string hashEmail = "";
try
{
DS_Applicazione.DipendentiRow rigaDip = DataProxy.DP.taDipendenti.getByIdx(idxDipendente)[0];
CognomeNome = string.Format("{0} {1}", rigaDip.Cognome, rigaDip.Nome);
+ email = rigaDip.email;
+ hashEmail = SteamCrypto.getHashStringMD5(email);
}
catch
{ }
memLayer.ML.setSessionVal("cognomeNome", CognomeNome);
+ memLayer.ML.setSessionVal("email", email);
+ memLayer.ML.setSessionVal("hashEmail", hashEmail);
}
else
{
// svuoto cookie...
memLayer.ML.emptyCookieVal("AuthGPW");
// rimando pagina x registrazione devices
- Response.Redirect("~/A3/regNewDevice.aspx");
+ Response.Redirect("~/regNewDevice.aspx");
}
}
}
diff --git a/GPW_Smart/WebUserControls/mod_title.ascx.designer.cs b/GPW_Smart/WebUserControls/mod_title.ascx.designer.cs
index 919f90a..983612a 100644
--- a/GPW_Smart/WebUserControls/mod_title.ascx.designer.cs
+++ b/GPW_Smart/WebUserControls/mod_title.ascx.designer.cs
@@ -20,14 +20,5 @@ namespace GPW.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblSwData;
-
- ///
- /// lblIpData control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label lblIpData;
}
}