<%: traduci("UserAdminTitle") %>
- <%: traduci("UserAdminInstr01") %>
+
+ <%: traduci("UserAdminInstr01") %>
diff --git a/CMS_SC/UserAdmin.aspx.cs b/CMS_SC/UserAdmin.aspx.cs
index debc9bb..a7599eb 100644
--- a/CMS_SC/UserAdmin.aspx.cs
+++ b/CMS_SC/UserAdmin.aspx.cs
@@ -16,12 +16,14 @@ namespace CMS_SC
checkVisibCtrl();
}
///
- /// Controlla visibilità delle sezioni (in particolare abilitazioen da utente/AuthKey)
+ /// Controlla visibilità delle sezioni (in particolare abilitazione da utente/AuthKey)
///
private void checkVisibCtrl()
{
// controllo se c'è chiamata x aggiungere device da authKey e mostro panel...
mod_enrollByAuthKey1.Visible = (Request.QueryString["addDeviceByKey"] == "lvabe");
+ // controllo se mostrare login "semplificato"
+ mod_enrollUserBase.Visible = memLayer.ML.CRB("enableOpAuth");
// se è admin vede anche i controlli x abilitare richieste utenti & co...
divAdmin.Visible = userIsAdmin;
divUnauth.Visible = !userIsAdmin;
diff --git a/CMS_SC/UserAdmin.aspx.designer.cs b/CMS_SC/UserAdmin.aspx.designer.cs
index 78d3fdf..8cc1a87 100644
--- a/CMS_SC/UserAdmin.aspx.designer.cs
+++ b/CMS_SC/UserAdmin.aspx.designer.cs
@@ -21,6 +21,15 @@ namespace CMS_SC {
///
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divUnauth;
+ ///
+ /// mod_enrollUserBase control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::CMS_SC.WebUserControls.mod_enrollUserBase mod_enrollUserBase;
+
///
/// mod_enrollByAuthKey1 control.
///
diff --git a/CMS_SC/Web.config b/CMS_SC/Web.config
index fbc144c..6a21245 100644
--- a/CMS_SC/Web.config
+++ b/CMS_SC/Web.config
@@ -40,6 +40,12 @@
+
+
+
+
+
+
diff --git a/CMS_SC/WebUserControls/mod_enrollUserBase.ascx b/CMS_SC/WebUserControls/mod_enrollUserBase.ascx
new file mode 100644
index 0000000..1c88212
--- /dev/null
+++ b/CMS_SC/WebUserControls/mod_enrollUserBase.ascx
@@ -0,0 +1,29 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_enrollUserBase.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_enrollUserBase" %>
+
+
+
+
+
<%: traduci("AuthUserBaseCollaudi") %>
+
+
+
+
+
+
+
<%: traduci("btnAuthUserBase") %>
+
+
+
+
<%: traduci("AuthUserBaseTitle") %>
+
+ <%: traduci("AuthUserBaseInstr01") %>
+
+
+
+
diff --git a/CMS_SC/WebUserControls/mod_enrollUserBase.ascx.cs b/CMS_SC/WebUserControls/mod_enrollUserBase.ascx.cs
new file mode 100644
index 0000000..23c8fba
--- /dev/null
+++ b/CMS_SC/WebUserControls/mod_enrollUserBase.ascx.cs
@@ -0,0 +1,56 @@
+using SteamWare;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace CMS_SC.WebUserControls
+{
+ public partial class mod_enrollUserBase : SteamWare.UserControl
+ {
+ ///
+ /// richiesta enroll device da chiave personale + email
+ ///
+ ///
+ ///
+ protected void btnEnrollByAK_Click(object sender, EventArgs e)
+ {
+ // leggo cognome / nome x controllare email cms nome.cognome@cms.it ...
+ string cognome = txtCognome.Text.Trim().ToLower();
+ string nome = txtNome.Text.Trim().ToLower();
+ string email = string.Format("{0}.{1}@cms.it", nome, cognome);
+ if (email != "")
+ {
+ // ora controllo che l'email SIA nell'elenco delle email degli utenti...
+ if (devicesAuthProxy.stObj.checkUserEmail(email))
+ {
+#if false
+ // controllo se l'utente è "base" e quindi posso fare auth "semplificata"...
+ if (devicesAuthProxy.stObj.checkUserEmailAK(email, authKey))
+ {
+ // rimando al jumper...
+ Response.Redirect(string.Format("jumper?UserAuthkey={0}&USER_NAME={1}", authKey, email));
+ }
+ else
+ {
+ lblOutMsg.Text = traduci("ErrorEAK01");// "Attenzione! auth key NON valida, prego contattare amministratore!";
+ lblOutMsg.Visible = true;
+ }
+#endif
+ }
+ else
+ {
+ lblOutMsg.Text = traduci("ErrorEAK02");//"Attenzione! email non trovata, prego contattare amministratore!";
+ lblOutMsg.Visible = true;
+ }
+ }
+ else
+ {
+ lblOutMsg.Text = traduci("ErrorEAK03");//"Attenzione! preogo inserire email valida!";
+ lblOutMsg.Visible = true;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/CMS_SC/WebUserControls/mod_enrollUserBase.ascx.designer.cs b/CMS_SC/WebUserControls/mod_enrollUserBase.ascx.designer.cs
new file mode 100644
index 0000000..574e27c
--- /dev/null
+++ b/CMS_SC/WebUserControls/mod_enrollUserBase.ascx.designer.cs
@@ -0,0 +1,51 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace CMS_SC.WebUserControls {
+
+
+ public partial class mod_enrollUserBase {
+
+ ///
+ /// txtCognome control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtCognome;
+
+ ///
+ /// txtNome control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtNome;
+
+ ///
+ /// btnEnrollByAK control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.LinkButton btnEnrollByAK;
+
+ ///
+ /// lblOutMsg control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblOutMsg;
+ }
+}
diff --git a/CMS_SC/WebUserControls/mod_testata.ascx b/CMS_SC/WebUserControls/mod_testata.ascx
index dec8d0a..6dc487c 100644
--- a/CMS_SC/WebUserControls/mod_testata.ascx
+++ b/CMS_SC/WebUserControls/mod_testata.ascx
@@ -34,11 +34,7 @@
- Anagrafiche
-
-
-
-