From e8971cfdef439f1b2c1d42789c69cd05209b36c0 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 9 Oct 2019 23:54:02 +0200 Subject: [PATCH] Abbozzato controllo login --- INTERFACE/WebLCP/Default.aspx | 3 + INTERFACE/WebLCP/Default.aspx.designer.cs | 9 +++ INTERFACE/WebLCP/WUC/mod_home.ascx | 38 +----------- .../WebLCP/WUC/mod_home.ascx.designer.cs | 27 --------- INTERFACE/WebLCP/WUC/mod_register.ascx | 1 + INTERFACE/WebLCP/WUC/mod_register.ascx.cs | 17 ++++++ .../WebLCP/WUC/mod_register.ascx.designer.cs | 17 ++++++ INTERFACE/WebLCP/WUC/mod_sendToken.ascx | 18 ++++++ INTERFACE/WebLCP/WUC/mod_sendToken.ascx.cs | 27 +++++++++ .../WebLCP/WUC/mod_sendToken.ascx.designer.cs | 42 ++++++++++++++ INTERFACE/WebLCP/WUC/mod_userLogin.ascx | 58 +++++++++++++++++++ INTERFACE/WebLCP/WUC/mod_userLogin.ascx.cs | 27 +++++++++ .../WebLCP/WUC/mod_userLogin.ascx.designer.cs | 42 ++++++++++++++ INTERFACE/WebLCP/WebLCP.csproj | 24 ++++++++ Jenkinsfile | 2 +- 15 files changed, 287 insertions(+), 65 deletions(-) create mode 100644 INTERFACE/WebLCP/WUC/mod_register.ascx create mode 100644 INTERFACE/WebLCP/WUC/mod_register.ascx.cs create mode 100644 INTERFACE/WebLCP/WUC/mod_register.ascx.designer.cs create mode 100644 INTERFACE/WebLCP/WUC/mod_sendToken.ascx create mode 100644 INTERFACE/WebLCP/WUC/mod_sendToken.ascx.cs create mode 100644 INTERFACE/WebLCP/WUC/mod_sendToken.ascx.designer.cs create mode 100644 INTERFACE/WebLCP/WUC/mod_userLogin.ascx create mode 100644 INTERFACE/WebLCP/WUC/mod_userLogin.ascx.cs create mode 100644 INTERFACE/WebLCP/WUC/mod_userLogin.ascx.designer.cs diff --git a/INTERFACE/WebLCP/Default.aspx b/INTERFACE/WebLCP/Default.aspx index cba1fec..ee28cfc 100644 --- a/INTERFACE/WebLCP/Default.aspx +++ b/INTERFACE/WebLCP/Default.aspx @@ -2,9 +2,12 @@ <%@ Register Src="~/WUC/mod_home.ascx" TagPrefix="uc1" TagName="mod_home" %> <%@ Register Src="~/WUC/tmp_WIP.ascx" TagPrefix="uc1" TagName="tmp_WIP" %> +<%@ Register Src="~/WUC/mod_userLogin.ascx" TagPrefix="uc1" TagName="mod_userLogin" %> + + diff --git a/INTERFACE/WebLCP/Default.aspx.designer.cs b/INTERFACE/WebLCP/Default.aspx.designer.cs index c50f72b..5a77070 100644 --- a/INTERFACE/WebLCP/Default.aspx.designer.cs +++ b/INTERFACE/WebLCP/Default.aspx.designer.cs @@ -20,5 +20,14 @@ namespace WebLCP { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::WebLCP.WUC.mod_home mod_home; + + /// + /// Controllo mod_userLogin. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::WebLCP.WUC.mod_userLogin mod_userLogin; } } diff --git a/INTERFACE/WebLCP/WUC/mod_home.ascx b/INTERFACE/WebLCP/WUC/mod_home.ascx index 94999aa..067a6c3 100644 --- a/INTERFACE/WebLCP/WUC/mod_home.ascx +++ b/INTERFACE/WebLCP/WUC/mod_home.ascx @@ -13,40 +13,4 @@ Eventuale altro link al sito progetto »

-
-
- <%--
-
About
- -
--%> -
-
-
-
Accesso
-
- Per accedere alla piattaforma è necessario registrarsi tramite un account email valido ed impiegare il link di autorizzazione che riceverete all'indirizzo email -
- - -
- - Invia email accesso » - - registra nuovo account » -
-
-
-
-
- <%--
-
Contact
- -
--%> -
-
+ diff --git a/INTERFACE/WebLCP/WUC/mod_home.ascx.designer.cs b/INTERFACE/WebLCP/WUC/mod_home.ascx.designer.cs index e99e532..92fb573 100644 --- a/INTERFACE/WebLCP/WUC/mod_home.ascx.designer.cs +++ b/INTERFACE/WebLCP/WUC/mod_home.ascx.designer.cs @@ -11,32 +11,5 @@ namespace WebLCP.WUC { public partial class mod_home { - - /// - /// Controllo txtEmail. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtEmail; - - /// - /// Controllo lbtSendToken. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtSendToken; - - /// - /// Controllo lbtNewUser. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtNewUser; } } diff --git a/INTERFACE/WebLCP/WUC/mod_register.ascx b/INTERFACE/WebLCP/WUC/mod_register.ascx new file mode 100644 index 0000000..aa400cc --- /dev/null +++ b/INTERFACE/WebLCP/WUC/mod_register.ascx @@ -0,0 +1 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_register.ascx.cs" Inherits="WebLCP.WUC.mod_register" %> diff --git a/INTERFACE/WebLCP/WUC/mod_register.ascx.cs b/INTERFACE/WebLCP/WUC/mod_register.ascx.cs new file mode 100644 index 0000000..bd97e2a --- /dev/null +++ b/INTERFACE/WebLCP/WUC/mod_register.ascx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebLCP.WUC +{ + public partial class mod_register : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/INTERFACE/WebLCP/WUC/mod_register.ascx.designer.cs b/INTERFACE/WebLCP/WUC/mod_register.ascx.designer.cs new file mode 100644 index 0000000..8cf508c --- /dev/null +++ b/INTERFACE/WebLCP/WUC/mod_register.ascx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace WebLCP.WUC +{ + + + public partial class mod_register + { + } +} diff --git a/INTERFACE/WebLCP/WUC/mod_sendToken.ascx b/INTERFACE/WebLCP/WUC/mod_sendToken.ascx new file mode 100644 index 0000000..73ee860 --- /dev/null +++ b/INTERFACE/WebLCP/WUC/mod_sendToken.ascx @@ -0,0 +1,18 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_sendToken.ascx.cs" Inherits="WebLCP.WUC.mod_sendToken" %> + +
+
+

Recupero Tokena

+
+
+ Per richiedere l'invio di un token di accesso all'email registrata prego compilare il form seguente: +
+ + + Invia per email » +
+
+ +
diff --git a/INTERFACE/WebLCP/WUC/mod_sendToken.ascx.cs b/INTERFACE/WebLCP/WUC/mod_sendToken.ascx.cs new file mode 100644 index 0000000..8a6997f --- /dev/null +++ b/INTERFACE/WebLCP/WUC/mod_sendToken.ascx.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebLCP.WUC +{ + public partial class mod_sendToken : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void lbtResendToken_Click(object sender, EventArgs e) + { + // verifico email esista !!!FIXME!!! + if (true) + { + lblOut.CssClass = "text-success"; + lblOut.Text = "Email inviata!"; + } + } + } +} \ No newline at end of file diff --git a/INTERFACE/WebLCP/WUC/mod_sendToken.ascx.designer.cs b/INTERFACE/WebLCP/WUC/mod_sendToken.ascx.designer.cs new file mode 100644 index 0000000..a819533 --- /dev/null +++ b/INTERFACE/WebLCP/WUC/mod_sendToken.ascx.designer.cs @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace WebLCP.WUC { + + + public partial class mod_sendToken { + + /// + /// Controllo txtEmail. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtEmail; + + /// + /// Controllo lbtResendToken. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtResendToken; + + /// + /// Controllo lblOut. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblOut; + } +} diff --git a/INTERFACE/WebLCP/WUC/mod_userLogin.ascx b/INTERFACE/WebLCP/WUC/mod_userLogin.ascx new file mode 100644 index 0000000..ec277e9 --- /dev/null +++ b/INTERFACE/WebLCP/WUC/mod_userLogin.ascx @@ -0,0 +1,58 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_userLogin.ascx.cs" Inherits="WebLCP.WUC.mod_userLogin" %> + + +
+
+ <%--
+
About
+ +
--%> +
+
+
+
+ +
+
+ Per accedere alla piattaforma è necessario registrarsi tramite un account email valido ed impiegare il link di autorizzazione che riceverete all'indirizzo email +
+
+
+
+ + +
+
+ + Invia email accesso » +
+
+
+
+
+ registra nuovo account » +
+
+
+
+
+
+
+
+
+ <%--
+
Contact
+ +
--%> +
+
diff --git a/INTERFACE/WebLCP/WUC/mod_userLogin.ascx.cs b/INTERFACE/WebLCP/WUC/mod_userLogin.ascx.cs new file mode 100644 index 0000000..6410040 --- /dev/null +++ b/INTERFACE/WebLCP/WUC/mod_userLogin.ascx.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebLCP.WUC +{ + public partial class mod_userLogin : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void lbtSendToken_Click(object sender, EventArgs e) + { + + } + + protected void lbtNewUser_Click(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/INTERFACE/WebLCP/WUC/mod_userLogin.ascx.designer.cs b/INTERFACE/WebLCP/WUC/mod_userLogin.ascx.designer.cs new file mode 100644 index 0000000..a6d6195 --- /dev/null +++ b/INTERFACE/WebLCP/WUC/mod_userLogin.ascx.designer.cs @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace WebLCP.WUC { + + + public partial class mod_userLogin { + + /// + /// Controllo txtEmail. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtEmail; + + /// + /// Controllo lbtSendToken. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtSendToken; + + /// + /// Controllo lbtNewUser. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtNewUser; + } +} diff --git a/INTERFACE/WebLCP/WebLCP.csproj b/INTERFACE/WebLCP/WebLCP.csproj index 99a76dc..f1aa65b 100644 --- a/INTERFACE/WebLCP/WebLCP.csproj +++ b/INTERFACE/WebLCP/WebLCP.csproj @@ -196,6 +196,9 @@ + + + @@ -275,6 +278,27 @@ mod_home.ascx + + mod_register.ascx + ASPXCodeBehind + + + mod_register.ascx + + + mod_sendToken.ascx + ASPXCodeBehind + + + mod_sendToken.ascx + + + mod_userLogin.ascx + ASPXCodeBehind + + + mod_userLogin.ascx + tmp_WIP.ascx ASPXCodeBehind diff --git a/Jenkinsfile b/Jenkinsfile index 1f1c31c..93dcc50 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=22']) { + withEnv(['NEXT_BUILD_NUMBER=28']) { // env.versionNumber = VersionNumber(versionNumberString : '0.8.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '0.8.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'LCP'