diff --git a/App_Code/RegexSammlung_VERAG.vb b/App_Code/RegexSammlung_VERAG.vb
index 346ee86..a2e8a94 100644
--- a/App_Code/RegexSammlung_VERAG.vb
+++ b/App_Code/RegexSammlung_VERAG.vb
@@ -11,7 +11,7 @@ Public Class RegexSammlung_VERAG
Return strtemp
End Function
Function getregPassword() As String
- Dim strtemp As String = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{4,30}$"
+ Dim strtemp As String = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{4,35}$"
Return strtemp
End Function
Function getUsername() As String
diff --git a/css/login/ForgotPW.css b/css/login/ForgotPW.css
index 4cb9bde..20e82fb 100644
--- a/css/login/ForgotPW.css
+++ b/css/login/ForgotPW.css
@@ -71,4 +71,25 @@
color: #fff;
width: 200px;
height: 35px;
+}
+
+.bg-user-icon {
+ background: url("../../images/Icons/service/username-icon-png-5.png") no-repeat 1.75% 10px white;
+ padding-left: 28px;
+ padding-right: 50px;
+ margin-left: -4px;
+ width: 207px;
+ height: 20px;
+ border: 1px gray solid;
+ border-radius: 5px 5px 0px 0px;
+}
+.bg-email-icon {
+ background: url("../../images/Icons/service/mail-icon.gif") no-repeat 1.75% 10px white;
+ padding-left: 28px;
+ padding-right: 50px;
+ margin-left: -4px;
+ width: 207px;
+ height: 20px;
+ border: 1px gray solid;
+ border-radius: 5px 5px 0px 0px;
}
\ No newline at end of file
diff --git a/css/login/loginFLEX.css b/css/login/loginFLEX.css
index f243bcc..c28b988 100644
--- a/css/login/loginFLEX.css
+++ b/css/login/loginFLEX.css
@@ -66,4 +66,4 @@
}
#UserName{
font-size:17px;
-}
\ No newline at end of file
+}
diff --git a/images/Icons/main/icon0-vector-493-01.png b/images/Icons/main/icon0-vector-493-01.png
new file mode 100644
index 0000000..bc73caf
Binary files /dev/null and b/images/Icons/main/icon0-vector-493-01.png differ
diff --git a/images/Icons/service/key-icon-png-22.png b/images/Icons/service/key-icon-png-22.png
new file mode 100644
index 0000000..07366c4
Binary files /dev/null and b/images/Icons/service/key-icon-png-22.png differ
diff --git a/images/Icons/service/key-icon-png-22_small.png b/images/Icons/service/key-icon-png-22_small.png
new file mode 100644
index 0000000..bcb3e7c
Binary files /dev/null and b/images/Icons/service/key-icon-png-22_small.png differ
diff --git a/images/Icons/service/mail-icon.gif b/images/Icons/service/mail-icon.gif
new file mode 100644
index 0000000..0400f4b
Binary files /dev/null and b/images/Icons/service/mail-icon.gif differ
diff --git a/images/Icons/service/mail-icon.png b/images/Icons/service/mail-icon.png
new file mode 100644
index 0000000..6af14cc
Binary files /dev/null and b/images/Icons/service/mail-icon.png differ
diff --git a/images/Icons/service/username-icon-png-5.png b/images/Icons/service/username-icon-png-5.png
new file mode 100644
index 0000000..43a1305
Binary files /dev/null and b/images/Icons/service/username-icon-png-5.png differ
diff --git a/images/Icons/service/zahlen.png b/images/Icons/service/zahlen.png
new file mode 100644
index 0000000..a6481e4
Binary files /dev/null and b/images/Icons/service/zahlen.png differ
diff --git a/login/ForgotPW.aspx b/login/ForgotPW.aspx
index a0fb5c6..198c206 100644
--- a/login/ForgotPW.aspx
+++ b/login/ForgotPW.aspx
@@ -69,7 +69,7 @@
}
@@ -103,20 +103,14 @@
-
diff --git a/login/ForgotPW.aspx.vb b/login/ForgotPW.aspx.vb
index ba3db1f..7b35e96 100644
--- a/login/ForgotPW.aspx.vb
+++ b/login/ForgotPW.aspx.vb
@@ -8,13 +8,6 @@ Imports System.Data
Partial Class login_ForgotPW
Inherits System.Web.UI.Page
Protected Sub Page_Load(sender As Object, e As EventArgs)
- If txt_Username.Text = "" Then
- Try
- txt_Username.Text = Request.QueryString.Item("urlofchangepwpage")
- Catch ex As Exception
- MsgBox(ex.Message)
- End Try
- End If
End Sub
Protected Sub btn_Back_Click(sender As Object, e As EventArgs)
Response.Redirect("login/login_FLEX.aspx")
@@ -25,9 +18,9 @@ Partial Class login_ForgotPW
Dim password As String = String.Empty
Dim email As String = txtEmail.Text
Dim tokenname As String = ""
- ' cDBFunctions.GetNewOpenConnection()
- Dim ConnectionString = ""
- If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
+ 'cDBFunctions.GetNewOpenConnection()
+ Dim ConnectionString = String.Empty
+ If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
'ConnectionString = "Server=DEVELOPER\DEVSQL;Database=VERAG_HOMEPAGE;Uid=sa;Pwd=BmWr501956"
ConnectionString = "Server=DEVELOPER\DEVSQL;Database=VERAG_HOMEPAGE;Uid=AppUser;Pwd=yp/THDd?xM+pZ$;"
Else
@@ -47,26 +40,21 @@ Partial Class login_ForgotPW
If dr.Read() Then
username = dr("Username").ToString()
password = dr("Password").ToString()
- Try
-
- email = txtEmail.Text
-
- Catch ex As Exception
- Dim Msg, Style, Title As String
- Msg = "E-mail Prüfung fehlgeschlagen!" & vbCrLf + "Bitte erneut versuchen!"
- Style = vbRetry + vbExclamation + vbDefaultButton1
- Title = "Fehler bei E-mail Authentifizierung!"
- MsgBox(Msg, Style, Title)
-
- If MsgBox(Msg, Style, Title).Yes Then
- txtEmail.Text = ""
- txtEmail.Focus()
- ElseIf MsgBox(Msg, Style, Title).No Then
-
- End If
- End Try
-
- End If
+ Try
+ email = txtEmail.Text
+ Catch ex As Exception
+ Dim Msg, Style, Title As String
+ Msg = "E-mail Prüfung fehlgeschlagen!" & vbCrLf + "Bitte erneut versuchen!"
+ Style = vbRetry + vbExclamation + vbDefaultButton1
+ Title = "Fehler bei E-Mail Authentifizierung!"
+ MsgBox(Msg, Style, Title)
+ If MsgBox(Msg, Style, Title).Yes Then
+ txtEmail.Text = String.Empty
+ txtEmail.Focus()
+ ElseIf MsgBox(Msg, Style, Title).No Then
+ End If
+ End Try
+ End If
End Using
con.Close()
End Using
@@ -74,9 +62,8 @@ Partial Class login_ForgotPW
If SendEmail(username, password, email, tokenname) = True Then
'password = RandomString(New Random, 10)
If (getDateoftoken(tokenname) = True) Then
- Dim msgboxstyle = vbDefaultButton1 + vbOK
-
- MsgBox(tokenname, msgboxstyle)
+ Dim msgboxstyle = vbDefaultButton1 + vbOK
+ MsgBox(tokenname, msgboxstyle)
Else
MsgBox("token nicht mehr Gültig! Neuer wird generiert!")
tokenname = genToken(username, password, email)
@@ -104,20 +91,20 @@ Partial Class login_ForgotPW
'End Function
Function SendEmail(username As String, password As String, email As String, tokenname As String) As Boolean
- Dim getdomianenvironment As String = ""
- Dim pagename As String = ""
- Dim ServPort As String = ""
+ Dim getdomianenvironment As String = String.Empty
+ Dim pagename As String = String.Empty
+ Dim ServPort As String = String.Empty
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
getdomianenvironment = HttpContext.Current.Request.ServerVariables("SERVER_NAME")
ServPort = ":" + Request.ServerVariables("SERVER_PORT")
- pagename = Request.ServerVariables("SCRIPT_NAME")
+ 'pagename = Request.ServerVariables("SCRIPT_NAME")
ElseIf HttpContext.Current.Request.ServerVariables("SERVER_NAME") = Not "localhost" Then
getdomianenvironment = HttpContext.Current.Request.ServerVariables("SERVER_NAME")
- ServPort = ":" + Request.ServerVariables("SERVER_PORT")
- pagename = Request.ServerVariables("SCRIPT_NAME")
+ ServPort = String.Empty
+ 'pagename = Request.ServerVariables("SCRIPT_NAME")
End If
'Dim pg As String = Request.ServerVariables("URL")
- MsgBox("/" + ServPort + Request.ServerVariables("URL"))
+ 'MsgBox("/" + ServPort + Request.ServerVariables("URL"))
Dim mailto As String = email
Dim Betreff As String = "Passwort reset"
Dim htmlbody = String.Format("Sehr geehrte/r {0},
Bitte dem Link zum Zurücksetzen des Passwortes folgen:
. " + Environment.NewLine + "Link" + Environment.NewLine + " Mit freundlichen Grüßen,", username, password)
@@ -125,13 +112,13 @@ Partial Class login_ForgotPW
Dim tokennametemp = genToken(username, password, email)
'Dim Strtemp = Session.Keys.Item("urltochangepw")
If getDateoftoken(tokennametemp) = True Then
- ' Dim attachment As Attachment = New Attachment(File.OpenRead(excel), "Kundenliste.xlsx")
- ' Msg.Attachments.Add(attachment)
+ ' Dim attachment As Attachment = New Attachment(File.OpenRead(excel), "Kundenliste.xlsx")
+ ' Msg.Attachments.Add(attachment)
VERAG_PROG_ALLGEMEIN.cProgramFunctions.sendMail(mailto, Betreff, htmlbody)
MsgBox("SENT")
Return True
Else
- MsgBox("Error02: Mail not delivered!")
+ MsgBox("Error02: Mail not delivered!" & vbCrLf & "Neuer Token wird generiert.")
tokennametemp = genToken(username, password, email)
VERAG_PROG_ALLGEMEIN.cProgramFunctions.sendMail(mailto, Betreff, htmlbody, tokenname)
Return False
@@ -146,13 +133,12 @@ Partial Class login_ForgotPW
Dim time() As Byte = BitConverter.GetBytes(DateTime.UtcNow.ToBinary())
Dim Key() As Byte = Guid.NewGuid().ToByteArray()
Dim token As String
-
Try
token = Convert.ToBase64String(time.Concat(Key).ToArray())
Return token
Catch Ex As Exception
Dim Msg, Style, Title As String
- Msg = "Tokengenerierung fehlgeschlagen!" & vbCrLf & "Eine E-Mail wurde erneut an " + email + " zugesedet."
+ Msg = "Tokengenerierung fehlgeschlagen!" & vbCrLf & "Eine E-Mail wurde erneut an " + email + " zugesendet."
Style = vbRetry + vbExclamation + vbDefaultButton1
Title = "Fehler bei Token-Generierung"
MsgBox(Msg, Style, Title)
@@ -160,16 +146,15 @@ Partial Class login_ForgotPW
If MsgBox(Msg, Style, Title).Retry Then
genToken(username, password, email)
If SendEmail(username, password, email, token) = False Then
- MsgBox("Email konnte wegen eines internen Verschlüsselungsfehlers nicht gesendet werden.", vbOK + vbInformation + vbDefaultButton1, "TokengenerierungsFehler")
+ MsgBox("Email konnte wegen eines internen Verschlüsselungsfehlers nicht gesendet werden.", vbOK + vbInformation + vbDefaultButton1, "Tokengenerierung-Fehler")
Else
- MsgBox("Email wurde erfolgreich gesendet." & vbCr & "Bitte Postfach überprüfen!", vbOK + vbInformation + vbDefaultButton1, "Tokengenerierungs erfolgreich!")
+ MsgBox("Email wurde erfolgreich gesendet." & vbCr & "Bitte Postfach überprüfen!", vbOK + vbInformation + vbDefaultButton1, "Tokengenerierung erfolgreich!")
End If
Else
MsgBox("Tokengenerierung nicht erfolgreich." & vbCrLf & "In 5 Sekunden nochmal versuchen!")
Dim jetzt As DateTime = DateTime.UtcNow
Dim wenn As DateTime = DateTime.UtcNow.AddSeconds(-5)
-
If jetzt < wenn Then
Return "NotYet"
Else
@@ -180,12 +165,11 @@ Partial Class login_ForgotPW
End Try
End Function
-
Function getDateoftoken(tokenname As String) As Boolean
Dim data() As Byte = Convert.FromBase64String(tokenname)
Dim wenn As DateTime = DateTime.FromBinary(BitConverter.ToInt64(data, 0))
If wenn < DateTime.UtcNow.AddMinutes(-30) Then
- tokenname = ""
+ tokenname = String.Empty
MsgBox("Token nicht gefunden oder zu alt!" + Environment.NewLine + "Bitte erneut Mail senden!")
Return False
ElseIf tokenname = "NotYet" Then
@@ -200,8 +184,4 @@ Partial Class login_ForgotPW
Protected Sub txtEmail_TextChanged(sender As Object, e As EventArgs)
regexval_txt_Email.Validate()
End Sub
-
- Protected Sub Token_tmr_Tick(sender As Object, e As EventArgs)
- btn_Send.Enabled = False
- End Sub
End Class
\ No newline at end of file
diff --git a/login/login_FLEX.aspx b/login/login_FLEX.aspx
index a53d03f..8d2c139 100644
--- a/login/login_FLEX.aspx
+++ b/login/login_FLEX.aspx
@@ -39,6 +39,48 @@
.txt_design2 {
color: #003680;
font-size: 1.725em;
+}
+ .bg-email-icon {
+ background: url("../../images/Icons/service/mail-icon.gif") no-repeat 1.75% 10px white;
+ padding-left: 28px;
+ padding-right: 50px;
+ margin-left: -4px;
+ width: 207px;
+ height: 20px;
+ border: 1px gray solid;
+ border-radius: 5px 5px 0px 0px;
+}
+
+.bg-user-icon {
+ background: url("../../images/Icons/service/username-icon-png-5.png") no-repeat 1.75% 10px white;
+ padding-left: 28px;
+ padding-right: 50px;
+ width: 207px;
+ height: 20px;
+ border: 1px gray solid;
+ border-radius: 5px 5px 0px 0px;
+}
+
+.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: 207px;
+ height: 20px;
+ border: 1px gray solid;
+ border-radius: 5px 5px 0px 0px;
+ margin-left: -4px;
+}
+
+.bg-UID-icon {
+ background: url("../../images/Icons/main/icon0-vector-493-01.png") no-repeat 1.75% 10px white;
+ padding-left: 28px;
+ padding-right: 50px;
+ margin-left: -4px;
+ width: 207px;
+ height: 20px;
+ border: 1px gray solid;
+ border-radius: 5px 5px 0px 0px;
}
@@ -86,27 +128,24 @@
|