Files
VERAG_Homepage/login/Change_PW.aspx

405 lines
24 KiB
Plaintext

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Change_PW.aspx.vb" Debug="true" Inherits="login_Change_PW" Async="true" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- Bootstrap -->
<html lang="en"></html>
<!-- Required meta tags -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" title="Verag Spedition AG ChangePW"/>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"/>
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css"/>
<!-- Bootstrap CSS -->
<!--<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">-->
<link href="bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"/>
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>VERAG Spedition AG Passwort wechseln</title>
<link rel="stylesheet" type="text/css" href="../css/main.css"/>
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
<LINK REL="SHORTCUT ICON" HREF="../images/Icons/favicon/favicon.ico" />
<!-- <link rel="stylesheet" type="text/css" href="css/edit_main.css"> -->
<script src="js/netzwerk.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../css/login/ChangePW.css"/>
<link rel="stylesheet" type="text/css" href="../css/example.css"/>
<script type="text/javascript">
function FocusOnInput() {
document.getElementById("UserID").focus();
}
</script>
<%@ import Namespace="MySql.Data.MySqlClient"%>
<script type="text/javascript">
// Vergebe den Event-Handler
document.onkeydown = handleKeyEvent;
// Funktion, die den Event verarbeitet
function handleKeyEvent(e) {
// MSIE nimmt das Event-Objekt aus window.event, DOM-kompatible Browser aus dem e-Funktionsparameter
if (!e) e = window.event;
// keyCode muss 70 sein und ctrlKey true
if (e.keyCode == 68 && e.ctrlKey) {
alert('Strg+D wurde gedrückt');
//topup
}
}
</script>
<script type = "text/javascript">
function goBack() {
window.history.back()
}
</script>
<style>
.bg-key-icon {
background: url("../../images/Icons/service/key-icon-png-22_small.png") no-repeat 1.75% 10px white;
padding-left: 28px;
padding-right: 50px;
width: 227px;
height: 32px;
border: 1px gray solid;
border-radius: 5px 5px 5px 5px;
margin-left: -4px;
}
@media (max-width: 558.98px) {
body {
font-family: 'Poppins', sans-serif;
background: #fafafa;
background-image: url(../../images/road.jpg);
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-color: #fff;
overflow-y: clip;
overflow-x: clip;
max-width:380px;
}
h1 {
color: #043381;
font-size: 22px;
}
h2 {
color: #043381;
font-size: 30px;
}
#content_container {
display: flex;
justify-content: center;
align-items: center;
width: 380px;
height: 513px;
margin: 0 auto;
margin-left:7%;
margin-top:9px;
}
.container-fluid {
width: 380px;
background-color: rgba(255,255,255,0.5);
height:513px;
top:50%;
bottom: -4px;
left: -195px;
right: 520px;
margin: -1px auto;
}
#tbl_main_M {
font-family: Arial;
font-size: 11px;
border: 1px solid gray;
width: 300px;
height: 813px;
margin-top:61px;
}
#btn_submitpw_M{
background-color: #003680;
color: #fff;
width: 325px;
height: 32px;
margin-bottom: 0px;
margin-left:-15px;
padding-inline: 2px 2px;
padding: -10px 0px 10px 1px;
font-weight:600;
}
#lbl_Ueberschrift_M{
font-size:30px;
margin-left:15px;
}
.bg-key-icon {
background: url("../../images/Icons/service/key-icon-png-22_small.png") no-repeat 1.75% 10px white;
margin-left:30px;
color:#003680;
border-radius: 8px 8px 8px 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
padding-left: 28px;
padding-right: 50px;
width: 245px;
height:32px;
border: 1px gray solid;
border-radius: 5px 5px 5px 5px;
margin-left: -4px;
font-size:1.125em;
}
}
@media (max-width: 323px) {
body {
font-family: 'Poppins', sans-serif;
background: #fafafa;
background-image: url(../../images/road.jpg);
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-color: #fff;
overflow-y: clip;
overflow-x: clip;
max-width:323px;
position: absolute;
}
h1 {
color: #043381;
font-size: 24px;
}
h2 {
color: #043381;
font-size: 30px;
}
#content_container {
display: flex;
justify-content: center;
align-items: center;
width: 323px;
height: 513px;
margin: 0 auto;
margin-left:10%;
}
.container-fluid {
width: 325px;
background-color: rgba(255,255,255,0.5);
height: 513px;
top:50%;
bottom: -4px;
left: -195px;
right: 520px;
margin: 0 auto;
}
#tbl_main_M {
font-family: Arial;
font-size: 11px;
border: 1px solid gray;
width: 323px;
height: 613px;
margin-top:80px;
}
#btn_submitpw_M{
background-color: #003680;
color: #fff;
width: 315px;
height: 32px;
margin-left:-15px;
padding-inline: 2px 2px;
padding: -10px 0px 10px 1px;
font-weight:600;
font-size:14px;
}
#lbl_Ueberschrift_M{
font-size:26px;
margin-left:15px;
}
.bg-key-icon {
background: url("../../images/Icons/service/key-icon-png-22_small.png") no-repeat 1.75% 10px white;
margin-left:30px;
color:#003680;
border-radius: 8px 8px 8px 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
padding-left: 28px;
padding-right: 50px;
width: 245px;
height:30px;
border: 1px gray solid;
border-radius: 5px 5px 5px 5px;
margin-left: -4px;
font-size:1.125em;
}
}
</style>
</head>
<body>
<div id="content_container" class="mw-100">
<div class="container-fluid">
<form id="form1" runat="server">
<center>
<!-- Große Bildschirme-->
<div class="d-none d-md-block">
<center>
<table id="main_table" runat="server" cellpadding="0" style="margin: 5% 2px 2px 2px; border:none;width:306px">
<tr style="color:#003680;height:55px;background-color:none">
<td>
<asp:Label ID="lbl_Ueberschrift1" runat="server" Text="Password-Change" style="margin-left:45px;background-color:none;color:#043381" Font-Size="26px" Font-Bold="true" ></asp:Label>
</td>
</tr>
<tr style="border:2px solid #003680; margin:4px auto 4px auto;background-color:rgba(255,255,255,0.5)">
<td>
<table>
<tr>
<td>
<asp:Image ID="ImageButton1" runat="server" ImageUrl="~/images/Icons/service/hilfe.png" Height="17px" Width="15px" style="margin-left:282px"/>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" style="color:#003680;margin-left:22px">The Password has to contain:</asp:Label>
</td>
</tr>
</table>
<ul style="list-style:circle">
<li>
<asp:Label ID="Label11" runat="server" style="color:#003680;margin-left:22px">1 Upper- and 1 lowercase letter</asp:Label>
</li>
<li>
<asp:Label ID="Label9" runat="server" style="color:#003680;margin-left:22px">and one special letter</asp:Label>
</li>
<li>
<asp:Label ID="Label10" runat="server" style="color:#003680;margin-left:22px;margin-right:0px">between 4 and 30 characters.</asp:Label>
</li>
</ul>
</td>
</tr>
<tr style="color:#003680;height:56.67px;">
<td colspan="4">
<asp:TextBox id="txt_Pw" CssClass="bg-key-icon" runat="server" TextMode="Password" Width="250px" Font-Names="Verdana" OnTextChanged="txt_Pw_TextChanged" AutoCompleteType="Disabled" style="margin-left:30px;color:#003680;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;" OnClick="this.value='';" Placeholder="Enter Password"></asp:TextBox>
<span></span>
</td>
</tr>
<tr style="color:#003680;height:10px;">
<td>
<asp:RequiredFieldValidator ID="reqPassw1txt" Enabled="false" style="margin-left:32px;font-size:1em" runat="server" ControlToValidate="txt_Pw" ValidationGroup="TXT_val" ForeColor="Red" Display="Dynamic" ErrorMessage="*" SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>
<tr style="color:#003680;height:56.67px;">
<td>
<asp:TextBox id="txt_Pw_WH" CssClass="bg-key-icon" Width="250px" OnTextChanged="txt_Pw_WH_TextChanged" runat="server" TextMode="Password" Font-Names="Verdana" AutoCompleteType="Disabled" style="margin-left:30px;color:#003680;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;" OnClick="this.value='';" Placeholder="Repeat Password"></asp:TextBox>
<span></span>
</td>
</tr>
<tr>
<td colspan="4">
<asp:RequiredFieldValidator ID="reqPasswtxt" Enabled="false" style="margin-left:42px;" runat="server" ControlToValidate="txt_Pw_WH" ErrorMessage="Please repeat the password!" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr style="color:#003680;height:35.67px;">
<td>
<asp:Button ID="btn_submitpw" runat="server" OnClick="btn_submitpw_Click" Text="Change password" Width="250px" style="margin-left:28px;margin-right:auto;border:none"/>
</td>
</tr>
<tr style="color:#003680;height:30px;width:306px">
<td>
<asp:CompareValidator ID="confirmPasswordReq" style="margin-left:32px;" Enabled="false" runat="server" ControlToCompare="txt_Pw" ControlToValidate="txt_Pw_WH" ErrorMessage="Please try again! Passwords didn't match!" Display="Dynamic" ForeColor="Red"></asp:CompareValidator>
<asp:RegularExpressionValidator ID="regexval_txt_Pw" style="margin-left:32px;" Font-Size="18px" Enabled="false" runat="server" ControlToValidate="txt_Pw" ValidationGroup="TXT_val" ForeColor="Red" ValidationExpression="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{4,35}$" Display="Dynamic" ErrorMessage="The Password has to match the criterias above." SetFocusOnError="true"></asp:RegularExpressionValidator>
<asp:RegularExpressionValidator ID="regexval_txt_Pw_WH" style="margin-left:32px;" Font-Size="18px" Enabled="false" runat="server" ControlToValidate="txt_Pw_WH" ValidationGroup="TXT_val" ValidationExpression="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{4,35}$" Display="Dynamic" ForeColor="Red" ErrorMessage="The Password has to match the criterias above." SetFocusOnError="true"></asp:RegularExpressionValidator>
</td>
</tr>
<tr style="padding: 2px 2px 2px 2px;width:306px">
<td>
<asp:Label ID="lbl_messagetext" runat="server" Text=""></asp:Label>
</td>
</tr>
</table>
</center>
</div>
<!--Smartphone-Bildschirme-->
<div class="d-md-none">
<table id="tbl_main_M" cellpadding="0" style="margin: 10px 4px 1px 2px;border:none;height:40px">
<tr style="color:#003680;height:25px;margin-left:105px">
<td>
<asp:Label ID="lbl_Ueberschrift_M" runat="server" Text="Password-Change:" style="color:#003681;background-color:none;font-size:26px;margin-left:30px" Font-Bold="true"></asp:Label>
</td>
</tr>
<tr style="border:2px solid #003680; width:320px; margin:4px auto 4px auto;background-color:rgba(255,255,255,0.5)">
<td>
<table>
<tr>
<td>
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/Icons/service/hilfe.png" Height="17px" Width="15px" style="margin-left:282px"/>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label1" runat="server" style="color:#003680;margin-left:32px">The Password has to contain:</asp:Label>
</td>
</tr>
</table>
<ul style="list-style:circle">
<li>
<asp:Label ID="Label3" runat="server" style="color:#003680;margin-left:32px">1 Upper- and 1 lowercase letter</asp:Label>
</li>
<li>
<asp:Label ID="Label4" runat="server" style="color:#003680;margin-left:32px">and one special letter</asp:Label>
</li>
<li>
<asp:Label ID="Label5" runat="server" style="color:#003680;margin-left:32px;margin-right:0px">between 4 and 30 characters.</asp:Label>
</li>
</ul>
</td>
</tr>
<tr style="color:#003680;height:26.67px;">
<td>
<asp:TextBox id="txt_Pw_M" CssClass="bg-key-icon" runat="server" Font-Size="1.125em" ValidationGroup="TXT_val_M" TextMode="Password" Width="245px" Font-Names="Verdana" OnTextChanged="txt_Pw_M_TextChanged" AutoCompleteType="Disabled" style="margin-left:30px;margin-top:20px;color:#003680;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;" Placeholder="Enter Password"></asp:TextBox>
<span></span></td>
</tr>
<tr style="height:20px">
<td>
<asp:RequiredFieldValidator ID="reqPassw1txt_M" runat="server" Enabled="false" ControlToValidate="txt_Pw_M" ErrorMessage="*" ForeColor="Red" Font-Size="18px" Display="Dynamic"></asp:RequiredFieldValidator>
</td>
</tr>
<tr style="color:#003680;height:26.67px;">
<td>
<asp:TextBox id="txt_Pw_WH_M" CssClass="bg-key-icon" Width="245px" Font-Size="1.125em" ValidationGroup="TXT_val_WH_M" OnTextChanged="txt_Pw_WH_M_TextChanged" runat="server" TextMode="Password" Font-Names="Verdana" AutoCompleteType="Disabled" style="margin-left:30px;color:#003680;border-radius: 8px 8px 8px 8px;-webkit-border-radius: 8px;-moz-border-radius: 8px;" Placeholder="Repeat Password"></asp:TextBox>
<span></span></td>
<td>
</td>
</tr>
<tr style="height:15px">
<td colspan="2">
<asp:RequiredFieldValidator ID="reqPasswtxt_M" runat="server" Enabled="false" ControlToValidate="txt_Pw_WH_M" ErrorMessage="*" Font-Size="18px" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
</td>
</tr>
<tr style="color:#003680;height:36.67px;">
<td>
<asp:Button ID="btn_submitpw_M" runat="server" Text="Change password" OnClick="btn_submitpw_M_Click" Width="290px" style="margin-left:1%;margin-right:auto;border:none;height:40px;margin-top:31px;margin-bottom: 10px;"/>
</td>
</tr>
<tr style="color:#003680;height:30px;width:306px">
<td>
<asp:CompareValidator ID="confirmPasswordReq_M" runat="server" Font-Size="18px" ControlToCompare="txt_Pw_M" Enabled="false" ControlToValidate="txt_Pw_WH_M" ValidationGroup="TXT_val_WH_M" ForeColor="Red" ErrorMessage="Please try again! The passwords didn't match." Display="Dynamic"></asp:CompareValidator>
<asp:RegularExpressionValidator ID="regexval_txt_Pw_WH_M" runat="server" Enabled="false" ControlToValidate="txt_Pw_WH_M" ValidationGroup="TXT_val_WH_M" ForeColor="Red" Font-Size="18px" ValidationExpression="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{4,35}$" Display="Dynamic" ErrorMessage="The Password has to match the criterias of the info-button." SetFocusOnError="true"></asp:RegularExpressionValidator>
<asp:RegularExpressionValidator ControlToValidate="txt_Pw_M" runat="server" Enabled="false" ID="regexval_txt_Pw_M" ValidationGroup="TXT_val_M" ForeColor="Red" Font-Size="18px" ValidationExpression="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{4,35}$" Display="Dynamic" ErrorMessage="The Password has to match the criterias of the info-button." SetFocusOnError="true"></asp:RegularExpressionValidator>
</td>
</tr>
<tr style="padding: 2px 2px 2px 2px;width:306px">
<td>
<asp:Label ID="lbl_messagetext_M" runat="server" Text=""></asp:Label>
</td>
</tr>
</table>
</div>
</center>
</form>
</div>
</div>
</body>
</html>