diff --git a/Controllers/RegistrazioniController.cs b/Controllers/RegistrazioniController.cs
index 38fdff2..d63c986 100644
--- a/Controllers/RegistrazioniController.cs
+++ b/Controllers/RegistrazioniController.cs
@@ -15,6 +15,7 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc.RazorPages;
using NuGet.Common;
+using System.Security.Policy;
namespace VirtualTask.Controllers
{
@@ -490,8 +491,7 @@ namespace VirtualTask.Controllers
string txt = string.Empty;
StringBuilder sb=new StringBuilder();
sb.Append(urlConfirm);
- sb.Append("/Registrazioni/ConfirmEmail");
- //sb.Append("https://localhost:7140/Registrazioni/ConfirmEmail");
+ sb.Append("/Registrazioni/ConfirmEmail");
sb.Append("?Token=");
sb.Append(tokenEmail);
sb.Append("&Email=");
@@ -504,6 +504,29 @@ namespace VirtualTask.Controllers
return txt;
}
+ private string getMailTextRiepilogo(Registrazione r)
+ {
+ string txt = string.Empty;
+ StringBuilder sb = new StringBuilder();
+ sb.Append(string.Format("Gentile sig. {0}
", r.cognome));
+ sb.Append("Le confermiamo il completamento della procedura di registrazione
");
+ sb.Append("Di seguito il riepilogo della sua registrazione:
");
+ sb.Append(string.Format("Nome: {0}
", !string.IsNullOrEmpty(r.nome)?r.nome:string.Empty));
+ sb.Append(string.Format("Cognome: {0}
", !string.IsNullOrEmpty(r.cognome) ? r.cognome : string.Empty));
+ sb.Append(string.Format("Telefono: {0}
", !string.IsNullOrEmpty(r.telefono) ? r.telefono : string.Empty));
+ sb.Append(string.Format("Cellulare: {0}
", !string.IsNullOrEmpty(r.cellulare) ? r.cellulare : string.Empty));
+ sb.Append(string.Format("Email: {0}
", !string.IsNullOrEmpty(r.email) ? r.email : string.Empty));
+ sb.Append(string.Format("Azienda: {0}
", !string.IsNullOrEmpty(r.azienda) ? r.azienda : string.Empty));
+ sb.Append(string.Format("Città : {0}
", !string.IsNullOrEmpty(r.citta) ? r.citta : string.Empty));
+ sb.Append(string.Format("Provincia: {0}
", !string.IsNullOrEmpty(r.provincia) ? r.provincia : string.Empty));
+ sb.Append(string.Format("Nazione: {0}
", !string.IsNullOrEmpty(r.nazione) ? r.nazione : string.Empty));
+ sb.Append(string.Format("Username: {0}
", !string.IsNullOrEmpty(r.username) ? r.username : string.Empty));
+ sb.Append(string.Format("Password: {0}
", !string.IsNullOrEmpty(r.passwd) ? r.passwd : string.Empty));
+
+ txt = sb.ToString();
+ return txt;
+ }
+
private static Random random = new Random();
public static string RandomString(int length)
diff --git a/Views/Registrazioni/Create.cshtml b/Views/Registrazioni/Create.cshtml
index 566a67d..527d81b 100644
--- a/Views/Registrazioni/Create.cshtml
+++ b/Views/Registrazioni/Create.cshtml
@@ -109,7 +109,8 @@