completato update versione ADMIN...

This commit is contained in:
Samuele E. Locatelli
2017-01-19 14:59:36 +01:00
parent c4236bdd5a
commit 82bfd4df58
5 changed files with 9 additions and 11 deletions
@@ -23,7 +23,7 @@ namespace MoonPro_site.WebUserControls
private void checkAuth()
{
// se in session è auth alora mostro pannello caricamento..
if (Convert.ToBoolean(Session["isAuthKanban"]))
if (Convert.ToBoolean(Session["isAuthUpdForced"]))
{
pnlUpload.Visible = true;
pnlPasswd.Visible = false;
@@ -73,16 +73,16 @@ namespace MoonPro_site.WebUserControls
}
protected void txtPwd_TextChanged(object sender, EventArgs e)
{
string _pwdOk = ConfigurationManager.AppSettings.Get("_pdwUpdateKanban");
string _pwdOk = ConfigurationManager.AppSettings.Get("_pdwUpdateForzato");
// verifico la password ed eventualmente mostro pannello caricamento..
if (txtPwd.Text != "" && txtPwd.Text == _pwdOk)
{
Session["isAuthKanban"] = true;
Session["isAuthUpdForced"] = true;
checkAuth();
}
else
{
Session["isAuthKanban"] = false;
Session["isAuthUpdForced"] = false;
checkAuth();
}
}