revert
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
Imports Konscious.Security.Cryptography
|
||||
Partial Class Customers_Default2
|
||||
Inherits System.Web.UI.Page
|
||||
Dim nIterations As Integer = VERAG_VARIABLES.getiterationnumber * VERAG_VARIABLES.RandomInteger(2, 3)
|
||||
Dim nIterations As Integer = VERAG_VARIABLES.getiterationnumber
|
||||
Dim MemorySizelocal As Integer = -1
|
||||
Dim MemorySizeProductionServ As Integer = -1
|
||||
Dim randzahl As Integer = -1
|
||||
Protected Sub Page_Load(ByVal sender As Object, e As EventArgs) Handles Me.Load
|
||||
|
||||
If Page.IsPostBack Then
|
||||
Page.MaintainScrollPositionOnPostBack = True
|
||||
If Not HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
@@ -23,16 +24,16 @@ Partial Class Customers_Default2
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.5)) * 6.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2)) * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 516
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 0), Math.Pow(2, 2)), Math.Pow(2, 4))
|
||||
ElseIf Integer.Parse(sld_getbenchmarkheat.Value) > 40 And Integer.Parse(sld_getbenchmarkheat.Value) < 60 Then
|
||||
MemorySizelocal = (((nIterations * 1.45) * 4.98 - ((nIterations * 1.15) * 1.23) / 4 * 1.5) / 1.05) + 0.95 * 420
|
||||
MemorySizelocal = (((nIterations * 5.45) * 4.98 - ((nIterations * 1.15) * 1.23) / 4 * 1.5) / 1.05) + 0.95 * 420
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 7.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 0.56) / 1.85 * 2.28) / 7.28) + 1.024 * 646
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 0), Math.Pow(2, 4)), VERAG_VARIABLES.RandomInteger(Math.Pow(2, 3), Math.Pow(2, 4)))
|
||||
ElseIf Integer.Parse(sld_getbenchmarkheat.Value) > 60 And Integer.Parse(sld_getbenchmarkheat.Value) < 80 Then
|
||||
MemorySizelocal = (((nIterations * 1.85) * 4.98 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 1 * 790
|
||||
MemorySizelocal = (((nIterations * VERAG_VARIABLES.RandomInteger(4.85, 8)) * 4.98 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 1 * 790
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 8.585 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 0.56) / 1.85 * 2.28) / 7.28) + 1.024 * 816
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 4), Math.Pow(2, 5)), VERAG_VARIABLES.RandomInteger(Math.Pow(2, 5), Math.Pow(2, 7)))
|
||||
ElseIf Integer.Parse(sld_getbenchmarkheat.Value) > 80 And Integer.Parse(sld_getbenchmarkheat.Value) < 100 Then
|
||||
MemorySizelocal = (((nIterations * 2) * 4.98 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 1 * 290
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 3)) * 9.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 3)) * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 416
|
||||
MemorySizelocal = (((nIterations * Math.Pow(2, 11)) * 14.98 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 1 * 290
|
||||
MemorySizeProductionServ = (((nIterations * * Math.Pow(2, 14)) * 11.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(2, 5)) * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 416
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 3), Math.Pow(2, 4)), VERAG_VARIABLES.RandomInteger(Math.Pow(2, 5), Math.Pow(2, 7)))
|
||||
End If
|
||||
Else
|
||||
|
||||
@@ -78,7 +78,7 @@ Partial Class Customers_Default3
|
||||
Dim list2 As List(Of VERAG_PROG_ALLGEMEIN.cSDL) = VERAG_PROG_ALLGEMEIN.cSDL.GET_LIST_WEB_LKW(Integer.Parse(Kdnrtext), Kennzeichen)
|
||||
Dim listdetails As New List(Of List(Of String))
|
||||
For Each l2 In list2
|
||||
If l2.KundenNr.ToString = Kundennr AndAlso l2.SDLNr.ToString = SDLNr Then
|
||||
If l2.KundenNr.ToString = Kundennr AndAlso l2.SDLNr.ToString = SDLNr And l2.History.ToString = History Then
|
||||
Dim strtempbestelltam As String = String.Empty
|
||||
Dim strtempLieferdatum As String = String.Empty
|
||||
Dim strtempKartenNr As String = String.Empty
|
||||
@@ -98,7 +98,7 @@ Partial Class Customers_Default3
|
||||
If IsNothing(l2.Lieferdatum) = False Then
|
||||
strtempLieferdatum = l2.Lieferdatum.ToString.Substring(0, 10)
|
||||
End If
|
||||
If l2.KartenNr.ToString = CardNo Then
|
||||
If IsNothing(l2.KartenNr) = False Then
|
||||
strtempKartenNr = l2.KartenNr.ToString
|
||||
End If
|
||||
If IsNothing(l2.PIN) = False Then
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<%@ import Namespace="MySql.Data.MySqlClient"%>
|
||||
<%@ Import Namespace="MySql.Data.MySqlClient" %>
|
||||
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8" />
|
||||
@@ -384,8 +384,7 @@
|
||||
<![endif]-->
|
||||
|
||||
<script type="text/javascript">
|
||||
function goBack()
|
||||
{
|
||||
function goBack() {
|
||||
window.history.back()
|
||||
}
|
||||
$('iframe').load(function () {
|
||||
@@ -407,45 +406,45 @@
|
||||
<table id="tbl_main" cellpadding="0" style="border: none;">
|
||||
<tr style="color: #003680; height: 30px;">
|
||||
<td align="left" style="color: #fff; font-kerning: auto;">
|
||||
<asp:Label ID="lbl_login" runat="server" Text="Login" style=" color: #003680;font-size: 2.320901320901321em; font-weight: 600; margin-left:149px;"></asp:Label>
|
||||
<asp:Label ID="lbl_login" runat="server" Text="Login" Style="color: #003680; font-size: 2.320901320901321em; font-weight: 600; margin-left: 149px;"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #003680; height: 46px;">
|
||||
<td align="left" colspan="2">
|
||||
<asp:TextBox ID="txt_CustomerID" CssClass="bg-UID-icon" runat="server" ValidationGroup="Login" Width="330px" Placeholder="Customer-ID" style="margin-left: 22px;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;" Font-Size="1.25em" Height="32px"></asp:TextBox>
|
||||
<td align="left" colspan="2" style="font-kerning: auto;">
|
||||
<asp:TextBox ID="txt_CustomerID" CssClass="bg-UID-icon" runat="server" ValidationGroup="Login" Width="330px" Placeholder="Customer-ID" Style="margin-left: 22px; border-radius: 8px 8px 8px 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px;" Font-Size="1.25em" Height="32px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="CustomerIDrequired" runat="server" ControlToValidate="txt_CustomerID" ForeColor="Red" Font-Size="18px" SetFocusOnError="true" ValidationGroup="Login" ErrorMessage="*"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color:#003680; height:46px;">
|
||||
<tr style="color: #003680; height: 46px; font-kerning: auto;">
|
||||
<td align="left" colspan="2">
|
||||
<asp:TextBox ID="UserName" runat="server" CssClass="bg-user-icon" TextMode="SingleLine" Width="330px" ToolTip="The Username is required." ValidationGroup="Login" Font-Size="1.25em" style="margin-left:22px;color:#003680;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;" Placeholder="Username" ></asp:TextBox>
|
||||
<asp:TextBox ID="UserName" runat="server" CssClass="bg-user-icon" TextMode="SingleLine" Width="330px" ToolTip="The Username is required." ValidationGroup="Login" Font-Size="1.25em" Style="margin-left: 22px; color: #003680; border-radius: 8px 8px 8px 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px;" Placeholder="Username"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="UserNamerequired" ForeColor="Red" Font-Size="17px" runat="server" ControlToValidate="UserName" SetFocusOnError="true" ErrorMessage="" ValidationGroup="Login"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color:#003680; height:46px;">
|
||||
<tr style="color: #003680; height: 46px; font-kerning: auto;">
|
||||
<td align="left" colspan="2">
|
||||
<asp:TextBox ID="Password" runat="server" CssClass="bg-key-icon" TextMode="Password" ToolTip="Please enter the Password." Width="330px" Font-Size="1.25em" ValidationGroup="Login" MaxLength="30" AutoCompleteType="Disabled" CausesValidation="true" style="margin-left:22px;color:#003680;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;" Placeholder="Password"></asp:TextBox>
|
||||
<asp:TextBox ID="Password" runat="server" CssClass="bg-key-icon" TextMode="Password" ToolTip="Please enter the Password." Width="330px" Font-Size="1.25em" ValidationGroup="Login" MaxLength="30" AutoCompleteType="Disabled" CausesValidation="true" Style="margin-left: 22px; color: #003680; border-radius: 8px 8px 8px 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px;" Placeholder="Password"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="Passwordrequired" ForeColor="Red" runat="server" ControlToValidate="Password" Font-Size="18px" ValidationGroup="Login" SetFocusOnError="true" ErrorMessage="*"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color:#003680; height:56px;">
|
||||
<tr style="color: #003680; height: 56px; font-kerning: auto;">
|
||||
<td align="left" colspan="2">
|
||||
<asp:LinkButton ID="LoginButton" runat="server" CommandName="Login" BorderStyle="None" Text="Login" ValidationGroup="Login" CssClass="btn btn-primary" target="_top" OnClientClick="bust2()" Width="320px" Font-Size="20px" style="margin-left:22px; padding:0px 0px 0px 0px;background-color:#003680"></asp:LinkButton>
|
||||
<asp:LinkButton ID="LoginButton" runat="server" CommandName="Login" BorderStyle="None" Text="Login" ValidationGroup="Login" CssClass="btn btn-primary" target="_top" OnClientClick="bust2()" Width="320px" Font-Size="20px" Style="margin-left: 22px; padding: 0px 0px 0px 0px; background-color: #003680"></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tblrowbuttons" style="color:#003680; height:37px;">
|
||||
<tr id="tblrowbuttons" style="color: #003680; height: 37px; font-kerning: auto;">
|
||||
<td align="left" colspan="2">
|
||||
<asp:CheckBox ID="RememberMe" runat="server" ValidationGroup="Login" Text="Remember me." style="margin-left:22px;"/>
|
||||
<asp:CheckBox ID="RememberMe" runat="server" ValidationGroup="Login" Text="Remember me." Style="margin-left: 22px;" />
|
||||
</td>
|
||||
<td align="right" colspan="4">
|
||||
<asp:LinkButton id="btn_ForgotPW" runat="server" target="_top" href="ForgotPW.aspx" style="margin-left:-156px;margin-right:-41px">I forgot my password </asp:LinkButton>
|
||||
<td align="right" colspan="4" style="font-kerning: auto;">
|
||||
<asp:LinkButton ID="btn_ForgotPW" runat="server" target="_top" href="ForgotPW.aspx" Style="margin-left: -156px; margin-right: -41px">I forgot my password.</asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #003680; height: 16px">
|
||||
<td align="center" style="color:Red;width:400px" colspan="2">
|
||||
<td align="center" style="color: Red; width: 400px; font-kerning: auto" colspan="2">
|
||||
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
|
||||
<!-- <asp:TextBox ID="txt_numbuserstest" runat="server"></asp:TextBox>-->
|
||||
<asp:Button ID="btn_CreateTestusers" OnClick="CreateTestusers_Click" CausesValidation="false" runat="server" Text="Create Users"/>
|
||||
<!--<asp:Button ID="btn_CreateTestusers" OnClick="CreateTestusers_Click" CausesValidation="false" runat="server" Text="Create Users"/>--->
|
||||
<asp:RegularExpressionValidator ID="check_UserName_regex" ControlToValidate="UserName" Font-Size="18px" ForeColor="Red" ValidationGroup="Login" runat="server" Display="Dynamic" SetFocusOnError="true" ErrorMessage="Username does not meet the requirements." ValidationExpression="^([a-zA-Z1-9]{4,30})$"></asp:RegularExpressionValidator>
|
||||
<asp:RegularExpressionValidator ID="valid_getNumberInput" ControlToValidate="txt_CustomerID" Font-Size="18px" ForeColor="Red" ValidationGroup="Login" runat="server" Display="Dynamic" SetFocusOnError="false" ErrorMessage="The Customer-ID is not valid." ValidationExpression="[0-9]{1,10}"></asp:RegularExpressionValidator>
|
||||
</td>
|
||||
@@ -463,51 +462,52 @@
|
||||
<table id="tbl_main_M" cellpadding="0" style="margin: 0 auto; border: none">
|
||||
<tr style="color: #003680; height: 25px;">
|
||||
<td align="left" style="color: #fff; font-kerning: auto;">
|
||||
<asp:Label ID="lbl_login_M" runat="server" Text="Login" style=" color: #003680;font-size: 2.320901320901321em; font-weight: 800; margin-left:132px;margin-top:20px"></asp:Label>
|
||||
<asp:Label ID="lbl_login_M" runat="server" Text="Login" Style="color: #003680; font-size: 2.320901320901321em; font-weight: 800; margin-left: 132px; margin-top: 20px"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #003680; height: 48px">
|
||||
<td align="left">
|
||||
<asp:TextBox ID="txt_CustomerID_M" CssClass="bg-UID-icon" runat="server" ValidationGroup="Login_M" Width="325" Placeholder="Customer-ID" Font-Size="2.025em" style="margin-left: 16px;margin-top:10px;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="CustomerID_M_required" runat="server" ControlToValidate="txt_CustomerID_M" SetFocusOnError="true" Font-Size="18px" ForeColor="Red" style="margin-left:22px;" ValidationGroup="Login_M" ErrorMessage="*"></asp:RequiredFieldValidator>
|
||||
<asp:TextBox ID="txt_CustomerID_M" CssClass="bg-UID-icon" runat="server" ValidationGroup="Login_M" Width="325" Placeholder="Customer-ID" Font-Size="2.025em" Style="margin-left: 16px; margin-top: 10px; border-radius: 8px 8px 8px 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px;"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="CustomerID_M_required" runat="server" ControlToValidate="txt_CustomerID_M" SetFocusOnError="true" Font-Size="18px" ForeColor="Red" Style="margin-left: 22px;" ValidationGroup="Login_M" ErrorMessage="*"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #003680; height: 48px;">
|
||||
<td align="left" colspan="2">
|
||||
<asp:TextBox id="Username" runat="server" CssClass="bg-user-icon" TextMode="SingleLine" Width = "325" ValidationGroup="Login_M" Placeholder="Username" required="true" Font-Size="2.025em" style="margin-left:16px;color:#003680;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="UserName_M_required" runat="server" ControlToValidate="Username" Font-Size="18px" ErrorMessage="*" ForeColor="Red" style="margin-left:22px;" ValidationGroup="Login_M" SetFocusOnError="false"></asp:RequiredFieldValidator>
|
||||
<asp:TextBox ID="Username" runat="server" CssClass="bg-user-icon" TextMode="SingleLine" Width="325" ValidationGroup="Login_M" Placeholder="Username" required="true" Font-Size="2.025em" Style="margin-left: 16px; color: #003680; border-radius: 8px 8px 8px 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px;"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="UserName_M_required" runat="server" ControlToValidate="Username" Font-Size="18px" ErrorMessage="*" ForeColor="Red" Style="margin-left: 22px;" ValidationGroup="Login_M" SetFocusOnError="false"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #003680; height: 48px;">
|
||||
<td align="left" colspan="2">
|
||||
<asp:TextBox ID="Password" runat="server" CssClass="bg-key-icon" TextMode="Password" Tooltip="Please provide the Password" required="true" Width = "325" Font-Size="2.025em" ValidationGroup="Login_M" MaxLength="30" AutoCompleteType="Enabled" CausesValidation="true" style="margin-left:16px;color:#003680;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;" Placeholder="Password" Text="Password"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="Passwordrequired_M" runat="server" SetFocusOnError="true" Font-Size="18px" ControlToValidate="Password" style="margin-left:22px;color:red;" ErrorMessage="*" ForeColor="Red" ValidationGroup="Login_M"></asp:RequiredFieldValidator>
|
||||
<asp:TextBox ID="Password" runat="server" CssClass="bg-key-icon" TextMode="Password" ToolTip="Please provide the Password" required="true" Width="325" Font-Size="2.025em" ValidationGroup="Login_M" MaxLength="30" AutoCompleteType="Enabled" CausesValidation="true" Style="margin-left: 16px; color: #003680; border-radius: 8px 8px 8px 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px;" Placeholder="Password" Text="Password"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="Passwordrequired_M" runat="server" SetFocusOnError="true" Font-Size="18px" ControlToValidate="Password" Style="margin-left: 22px; color: red;" ErrorMessage="*" ForeColor="Red" ValidationGroup="Login_M"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #003680; height: 70px;">
|
||||
<td align="left" colspan="4">
|
||||
<asp:LinkButton ID="LoginButton_M" runat="server" CommandName="Login" BorderStyle="None" ValidationGroup="Login_M" CssClass="btn btn-primary" target="_top" OnClientClick="bust2()" Width="320px" Font-Size="20px" style="margin-left:16px; padding:0px 0px 0px 0px;background-color:#003680;height:52px;margin-top:-40px;"><center><label for="LoginButton_M" style="margin:0 auto; margin-top:13px">Login</label></center></asp:LinkButton>
|
||||
<asp:LinkButton ID="LoginButton_M" runat="server" CommandName="Login" BorderStyle="None" ValidationGroup="Login_M" CssClass="btn btn-primary" target="_top" OnClientClick="bust2()" Width="320px" Font-Size="20px" Style="margin-left: 16px; padding: 0px 0px 0px 0px; background-color: #003680; height: 52px; margin-top: -40px;"><center><label for="LoginButton_M" style="margin:0 auto; margin-top:13px">Login</label></center></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #003680; height: 28px;">
|
||||
<td align="left" colspan="2">
|
||||
<asp:CheckBox ID="RememberMe_M" runat="server" ValidationGroup="Login_M" style="margin-left:22px;margin-top:-10px"/><label for="RememberMe_M" id="lbl_for_chkbox_M" style="margin-top:5px;font-size:18px">Remember me.</label>
|
||||
<asp:CheckBox ID="RememberMe_M" runat="server" ValidationGroup="Login_M" Style="margin-left: 22px; margin-top: -10px" /><label for="RememberMe_M" id="lbl_for_chkbox_M" style="margin-top: 5px; font-size: 18px">Remember me.</label>
|
||||
</td>
|
||||
<td align="right" colspan="2">
|
||||
<asp:LinkButton id="btn_ForgotPW_M" runat="server" target="_top" PostBackUrl="ForgotPW.aspx" href="ForgotPW.aspx" style="margin-left:-164px;margin-right:-62px;">I forgot my password</asp:LinkButton>
|
||||
<asp:LinkButton ID="btn_ForgotPW_M" runat="server" target="_top" PostBackUrl="ForgotPW.aspx" href="ForgotPW.aspx" Style="margin-left: -164px; margin-right: -62px;">I forgot my password.</asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #003680; height: 12px">
|
||||
<td align="center" style="width: 295px" colspan="2">
|
||||
<asp:Literal ID="FailureText_M" runat="server" EnableViewState="False"></asp:Literal>
|
||||
<asp:RegularExpressionValidator ID="check_UserName_M_regex" ControlToValidate="Username" ValidationGroup="Login_M" ForeColor="Red" Font-Size="18px" runat="server" style="margin-left:132px;color:red" Display="Dynamic" SetFocusOnError="true" ValidationExpression="^([a-zA-Z1-9]{4,30})$" ErrorMessage="Username does not meet the requirements." ></asp:RegularExpressionValidator>
|
||||
<asp:RegularExpressionValidator ID="valid_getNumber_M_Input" ControlToValidate="txt_CustomerID_M" ValidationGroup="Login_M" ForeColor="Red" Font-Size="18px" runat="server" style="margin-left:22px;" Display="Dynamic" SetFocusOnError="false" ValidationExpression="[0-9]{4,10}" ErrorMessage="The Customer-ID is not valid."></asp:RegularExpressionValidator>
|
||||
<asp:RegularExpressionValidator ID="check_UserName_M_regex" ControlToValidate="Username" ValidationGroup="Login_M" ForeColor="Red" Font-Size="18px" runat="server" Style="margin-left: 132px; color: red" Display="Dynamic" SetFocusOnError="true" ValidationExpression="^([a-zA-Z1-9]{4,30})$" ErrorMessage="Username does not meet the requirements."></asp:RegularExpressionValidator>
|
||||
<asp:RegularExpressionValidator ID="valid_getNumber_M_Input" ControlToValidate="txt_CustomerID_M" ValidationGroup="Login_M" ForeColor="Red" Font-Size="18px" runat="server" Style="margin-left: 22px;" Display="Dynamic" SetFocusOnError="false" ValidationExpression="[0-9]{4,10}" ErrorMessage="The Customer-ID is not valid."></asp:RegularExpressionValidator>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
</LayoutTemplate></asp:Login>
|
||||
</LayoutTemplate>
|
||||
</asp:Login>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@ Partial Class login_FLEX
|
||||
Private Customer_ID As String = String.Empty
|
||||
Private UserNaMe As String = String.Empty
|
||||
Private passw As String = String.Empty
|
||||
Private USERID As String = String.Empty
|
||||
|
||||
Private salt As Byte()
|
||||
Private intzahl As Integer
|
||||
Public intzahliterats As Integer = -1
|
||||
@@ -14,7 +14,6 @@ Partial Class login_FLEX
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
End Sub
|
||||
Protected Async Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
|
||||
If Page.IsPostBack = True Then
|
||||
Page.MaintainScrollPositionOnPostBack = True
|
||||
intzahliterats = VERAG_VARIABLES.getiterationnumber
|
||||
@@ -22,10 +21,10 @@ Partial Class login_FLEX
|
||||
Try
|
||||
Dim teststr = String.Empty
|
||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
intzahliterats = VERAG_VARIABLES.RandomInteger(Math.Pow(2, 8), Math.Pow(2, 17))
|
||||
intzahliterats = VERAG_VARIABLES.RandomInteger(Math.Pow(2, 8), Math.Pow(2, 15))
|
||||
teststr = Await TestPerformance.TestHashrateServerAsync(0.052 * VERAG_VARIABLES.GetCpuSpeed())
|
||||
Else
|
||||
intzahliterats = VERAG_VARIABLES.RandomInteger(Math.Pow(2, 8), Math.Pow(2, 17))
|
||||
intzahliterats = VERAG_VARIABLES.RandomInteger(Math.Pow(2, 8), Math.Pow(2, 15))
|
||||
teststr = Await TestPerformance.TestHashrateServerAsync(0.052 * VERAG_VARIABLES.GetCpuSpeed())
|
||||
End If
|
||||
If String.Equals(teststr, String.Empty) = False Then
|
||||
@@ -217,7 +216,7 @@ Partial Class login_FLEX
|
||||
End If
|
||||
|
||||
If String.Equals(tb3.Text, dr("Password")) = True Then
|
||||
intzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(95, 200), Math.Pow(2, 8))
|
||||
intzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(95, 210), Math.Pow(2, 8))
|
||||
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
|
||||
@@ -419,6 +418,7 @@ Partial Class login_FLEX
|
||||
|
||||
token = VERAG_VARIABLES.HashPassword(Convert.ToBase64String(time.Concat(Key).ToArray()), salt, intzahliterats, intzahl)
|
||||
Return VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(Convert.ToBase64String(token))
|
||||
|
||||
'Dim Msg, Style, Title As String
|
||||
'Msg = "Token Generation failed" & vbCrLf & "A new E-mail has been sent to the intern e-mail given."
|
||||
'Style = vbRetry + vbExclamation + vbDefaultButton1
|
||||
@@ -428,6 +428,7 @@ Partial Class login_FLEX
|
||||
'genToken(username, password, email)
|
||||
token = VERAG_VARIABLES.HashPassword(Convert.ToBase64String(time.Concat(Key).ToArray()), salt, intzahliterats, intzahl)
|
||||
Return VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(Convert.ToBase64String(token))
|
||||
|
||||
'Else
|
||||
'MsgBox("Token-Generation has not been successful." & vbCrLf & "Please try again in five seconds!")
|
||||
Dim jetzt As DateTime = DateTime.UtcNow
|
||||
@@ -446,6 +447,7 @@ Partial Class login_FLEX
|
||||
Protected Sub CreateTestusers_Click(sender As Object, e As EventArgs)
|
||||
Dim str As String = String.Empty
|
||||
Dim textbox As TextBox = Page.FindControl("txt_numbuserstes")
|
||||
|
||||
str = textbox.Text
|
||||
|
||||
TestPerformance.createnUsers(Integer.Parse(str))
|
||||
|
||||
Reference in New Issue
Block a user