Asnyc login
This commit is contained in:
@@ -35,7 +35,7 @@ Public Class VERAG_VARIABLES
|
|||||||
Argon.Salt = salt
|
Argon.Salt = salt
|
||||||
Argon.DegreeOfParallelism = 24
|
Argon.DegreeOfParallelism = 24
|
||||||
Argon.Iterations = nIterations
|
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 Convert.ToBase64String(Argon.GetBytes(nHash))
|
||||||
'Return 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)))
|
Dim Argon As Argon2d = New Argon2d(Encoding.UTF8.GetBytes(VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(password)))
|
||||||
Argon.Salt = salt
|
Argon.Salt = salt
|
||||||
Argon.DegreeOfParallelism = 36
|
Argon.DegreeOfParallelism = 36
|
||||||
Argon.Iterations = nIterations
|
Argon.Iterations = nIterations * 1.2
|
||||||
Argon.MemorySize = ((((nIterations * 4 - nIterations / 1.95 * 2.28) / 0.08) + 1 * 256) / 2)
|
Argon.MemorySize = (((nIterations * 4 - (nIterations * 1.2) / 1.95 * 2.28) / 0.08) + 1 * 256) / 2
|
||||||
Return Await Argon.GetBytesAsync(nHash)
|
Return Await Argon.GetBytesAsync(nHash)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ Partial Class login_FLEX
|
|||||||
Page.MaintainScrollPositionOnPostBack = False
|
Page.MaintainScrollPositionOnPostBack = False
|
||||||
End If
|
End If
|
||||||
End Sub
|
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 = ""
|
Dim ConnectionString = ""
|
||||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||||
VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM = True
|
VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM = True
|
||||||
@@ -205,7 +205,7 @@ Partial Class login_FLEX
|
|||||||
FormsAuthentication.RedirectFromLoginPage(UserNaMe, True)
|
FormsAuthentication.RedirectFromLoginPage(UserNaMe, True)
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Function
|
||||||
|
|
||||||
Protected Sub LoginButton_Click(sender As Object, e As EventArgs)
|
Protected Sub LoginButton_Click(sender As Object, e As EventArgs)
|
||||||
Validate("Login")
|
Validate("Login")
|
||||||
|
|||||||
Reference in New Issue
Block a user