Asnyc login

This commit is contained in:
ja
2021-12-16 15:26:52 +01:00
parent e701bf56d9
commit d6b8a8b92f
2 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ Public Class VERAG_VARIABLES
Argon.Salt = salt
Argon.DegreeOfParallelism = 24
Argon.Iterations = nIterations
Argon.MemorySize = (((nIterations * 1 - nIterations / 4 * 2) / 1.05) + 1 * 150)
Argon.MemorySize = (((nIterations * 1 - nIterations * 3 / 4 * 2) / 1.05) + 1 * 150)
'Return Convert.ToBase64String(Argon.GetBytes(nHash))
'Return Argon.GetBytes(nHash)
@@ -47,8 +47,8 @@ Public Class VERAG_VARIABLES
Dim Argon As Argon2d = New Argon2d(Encoding.UTF8.GetBytes(VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(password)))
Argon.Salt = salt
Argon.DegreeOfParallelism = 36
Argon.Iterations = nIterations
Argon.MemorySize = ((((nIterations * 4 - nIterations / 1.95 * 2.28) / 0.08) + 1 * 256) / 2)
Argon.Iterations = nIterations * 1.2
Argon.MemorySize = (((nIterations * 4 - (nIterations * 1.2) / 1.95 * 2.28) / 0.08) + 1 * 256) / 2
Return Await Argon.GetBytesAsync(nHash)
End If

View File

@@ -21,7 +21,7 @@ Partial Class login_FLEX
Page.MaintainScrollPositionOnPostBack = False
End If
End Sub
Protected Async Sub ValidateUser(sender As Object, e As EventArgs)
Protected Async Function ValidateUser(sender As Object, e As EventArgs) As Threading.Tasks.Task
Dim ConnectionString = ""
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM = True
@@ -205,7 +205,7 @@ Partial Class login_FLEX
FormsAuthentication.RedirectFromLoginPage(UserNaMe, True)
End Sub
End Function
Protected Sub LoginButton_Click(sender As Object, e As EventArgs)
Validate("Login")