Seperierung Login desktop von login mobil da sonst 2fach gehashed wurde, was die Leistung einschränkte.

This commit is contained in:
ja
2022-02-01 09:11:14 +01:00
parent fe2d41e4db
commit 04ccdfacf0
2 changed files with 3 additions and 3 deletions

View File

@@ -401,7 +401,7 @@
<form id="form1" runat="server">
<!-- Große Bildschirme-->
<div class="d-none d-md-block">
<asp:Login ID = "Login1" runat = "server" OnAuthenticate= "ValidateUser" DisplayRememberMe="true" DestinationPageUrl="../Customers/CustomsAviso.aspx" ValidateRequestMode="Enabled">
<asp:Login ID="Login1" runat="server" OnAuthenticate="ValidateUser" DisplayRememberMe="true" LoginButtonStyle-BackColor="#003680" DestinationPageUrl="../Customers/CustomsAviso.aspx" ValidateRequestMode="Enabled">
<LayoutTemplate>
<center>
<table id="tbl_main" cellpadding="0" style="border:none;">
@@ -457,7 +457,7 @@
</div>
<!--Smartphone-Bildschirme-->
<div class="d-md-none">
<asp:Login ID = "Login2" runat = "server" OnAuthenticate= "ValidateUser" DisplayRememberMe="true" DestinationPageUrl="../Customers/CustomsAviso.aspx" ValidateRequestMode="Enabled">
<asp:Login ID = "Login2" runat = "server" OnAuthenticate="ValidateUser_M" LoginButtonStyle-BackColor="#003680" DisplayRememberMe="true" DestinationPageUrl="../Customers/CustomsAviso.aspx" ValidateRequestMode="Enabled">
<LayoutTemplate>
<center>
<table id="tbl_main_M" cellpadding="0" style="margin: 0 auto;border:none">

View File

@@ -366,7 +366,7 @@ Partial Class login_FLEX
End If
If String.Equals(tb3_M.Text, dr("Password")) = True Then
intzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(95, 200), Math.Pow(2, 7))
intzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(95, 200), Math.Pow(2, 5))
salt = VERAG_VARIABLES.GenerateSalt(intzahl)
Dim hashpw As Byte() = Await VERAG_VARIABLES.HashPasswordAsync(passw, salt, intzahliterats, intzahl)
If Await VERAG_VARIABLES.VerifyhashAsync(dr("Password").ToString, salt, hashpw, intzahliterats, intzahl) = True Then