Refresh gestione GPW: refresh authKey

This commit is contained in:
Samuele Locatelli
2021-11-15 19:33:53 +01:00
parent aae30162f0
commit 672dfc72a4
10 changed files with 2579 additions and 2465 deletions
@@ -53,8 +53,8 @@ namespace GPW.WebUserControls
if (dipRow != null)
{
// calcolo il secret...
string md5UserAuthKey = SteamCrypto.EncryptString(UserAuthKey, "AuthGPW").ToLowerInvariant();
DataProxy.DP.taDipendenti.stp_Dip_setAuthKey(idxDip, $"{dipRow.CF}.{md5UserAuthKey}");
string md5UserAuthKey = SteamCrypto.EncryptString($"{dipRow.CF}.{UserAuthKey}", "AuthGPW");
DataProxy.DP.taDipendenti.stp_Dip_setAuthKey(idxDip, md5UserAuthKey);
// mostro esito!
lblWarning.Text = string.Format("AuthKey utente {0} aggiornata", idxDip);
lblWarning.Visible = true;