diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html
index f14c15c..8a3b1d7 100644
--- a/Resources/ChangeLog.html
+++ b/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
WebDoorCreator - Egalware
- Version: 0.9.2305.2512
+ Version: 0.9.2305.2516
Release note:
-
diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt
index 2439b5a..01bae9a 100644
--- a/Resources/VersNum.txt
+++ b/Resources/VersNum.txt
@@ -1 +1 @@
-0.9.2305.2512
+0.9.2305.2516
diff --git a/Resources/manifest.xml b/Resources/manifest.xml
index bfd3872..bc47dce 100644
--- a/Resources/manifest.xml
+++ b/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 0.9.2305.2512
+ 0.9.2305.2516
http://nexus.steamware.net/repository/SWS/WDC/stable/WDC.UI.zip
http://nexus.steamware.net/repository/SWS/WDC/stable/ChangeLog.html
false
diff --git a/WebDoorCreator.Data/Controllers/WebDoorCreatorController.cs b/WebDoorCreator.Data/Controllers/WebDoorCreatorController.cs
index b9c6869..dfa6695 100644
--- a/WebDoorCreator.Data/Controllers/WebDoorCreatorController.cs
+++ b/WebDoorCreator.Data/Controllers/WebDoorCreatorController.cs
@@ -21,6 +21,59 @@ namespace WebDoorCreator.Data.Controllers
#region Public Methods
+ ///
+ /// Adding a new User
+ ///
+ /// Record to edit or add
+ ///
+ public async Task UserAddMod(AspNetUsers addEditRec)
+ {
+ bool fatto = false;
+ //List dbResult = new List();
+ using (WDCDataContext localDbCtx = new WDCDataContext(_configuration))
+ {
+ try
+ {
+ var currRec = localDbCtx
+ .DbSetUsers
+ .Where(x => x.Id == addEditRec.Id)
+ .FirstOrDefault();
+ //if is not null edit the record found
+ if (currRec != null)
+ {
+ currRec.Id = addEditRec.Id;
+ currRec.UserName = addEditRec.UserName;
+ currRec.NormalizedUserName = addEditRec.NormalizedUserName;
+ currRec.Email = addEditRec.Email;
+ currRec.EmailConfirmed = addEditRec.EmailConfirmed;
+ currRec.LockoutEnabled = addEditRec.LockoutEnabled;
+ currRec.LockoutEnd = addEditRec.LockoutEnd;
+ currRec.ConcurrencyStamp = addEditRec.ConcurrencyStamp;
+ currRec.SecurityStamp = addEditRec.SecurityStamp;
+ currRec.AccessFailedCount = addEditRec.AccessFailedCount;
+ currRec.PhoneNumberConfirmed = addEditRec.PhoneNumberConfirmed;
+ currRec.PhoneNumber = addEditRec.PhoneNumber;
+ currRec.TwoFactorEnabled = addEditRec.TwoFactorEnabled;
+ localDbCtx.Entry(currRec).State = EntityState.Modified;
+ }
+ //if is null add the record as new in the table
+ else
+ {
+ localDbCtx
+ .DbSetUsers
+ .Add(addEditRec);
+ }
+ await localDbCtx.SaveChangesAsync();
+ fatto = true;
+ }
+ catch (Exception exc)
+ {
+ Log.Error($"Eccezione durante CompanyAddMod: {Environment.NewLine}{exc}");
+ }
+ }
+ return fatto;
+ }
+
///
/// Adding a new company
///
diff --git a/WebDoorCreator.Data/Services/WebDoorCreatorService.cs b/WebDoorCreator.Data/Services/WebDoorCreatorService.cs
index 55c94ba..49da275 100644
--- a/WebDoorCreator.Data/Services/WebDoorCreatorService.cs
+++ b/WebDoorCreator.Data/Services/WebDoorCreatorService.cs
@@ -84,6 +84,20 @@ namespace WebDoorCreator.Data.Services
await Task.Delay(1);
return dbResult;
}
+ ///
+ /// Update company
+ ///
+ ///
+ ///
+ public async Task UserAddMod(AspNetUsers currRec)
+ {
+ var dbResult = await dbController.UserAddMod(currRec);
+ // elimino cache redis...
+ RedisValue pattern = new RedisValue($"{Constants.rKeyCompany}");
+ bool answ = await ExecFlushRedisPattern(pattern);
+ await Task.Delay(1);
+ return dbResult;
+ }
///
/// Company list filtered by company id
diff --git a/WebDoorCreator.UI/Areas/Identity/Pages/Account/Login.cshtml.cs b/WebDoorCreator.UI/Areas/Identity/Pages/Account/Login.cshtml.cs
index 54331b8..8d57154 100644
--- a/WebDoorCreator.UI/Areas/Identity/Pages/Account/Login.cshtml.cs
+++ b/WebDoorCreator.UI/Areas/Identity/Pages/Account/Login.cshtml.cs
@@ -111,7 +111,7 @@ namespace WebDoorCreator.UI.Areas.Identity.Pages.Account
private async Task CheckSuperAdmin()
{
//se non ci fosse --> creo samuele come superadmin
- string superUser = "samuele@steamware.net";
+ string superUser = "zaccaria.majid01@egalware.com";
string superPwd = "viaDante16!";
string ADMIN_ROLE = "SuperAdmin";
var user = await _userManager.FindByEmailAsync(superUser);
diff --git a/WebDoorCreator.UI/Components/Gen/NavMenuHorizontal.razor b/WebDoorCreator.UI/Components/Gen/NavMenuHorizontal.razor
index 8488e4d..059e95d 100644
--- a/WebDoorCreator.UI/Components/Gen/NavMenuHorizontal.razor
+++ b/WebDoorCreator.UI/Components/Gen/NavMenuHorizontal.razor
@@ -43,7 +43,9 @@