1. Installation utilities and Web-Development
- Posted by euman at bellsouth.net Jun 20, 2003
- 485 views
--Alt-Boundary-11673.3917421 Content-description: Mail message body Hello all, Those interested parties in Installation utilities and Web-Development I need to code something similar to this in Euphoria Problem I see is how to have the login and passwords encrypted when sent to the server and decrypted to search my database for valid users. If I have to, I'll just stick with this.... <%@ Page Language="VB" %> <script runat="server"> Sub LoginBtn_Click(Sender As Object, E As EventArgs) If Page.IsValid Then If (UserName.Text = "jdoe at somewhere.com") And (UserPass.Text = "password") Then FormsAuthentication.RedirectFromLoginPage(UserName.Text, true) Else Msg.Text = "Invalid Credentials: Please try again" End If End If End Sub </script> <html> <head> </head> <body style="FONT-FAMILY: arial"> <form runat="server"> <h2>H2O Software, Inc. Login Page </h2> <hr size="1" /> <table> <tbody> <tr> <td> Username:</td> <td> <asp:TextBox id="UserName" runat="server"></asp:TextBox> </td> <td> <asp:RequiredFieldValidator id="Requiredfieldvalidator1" runat="server" ErrorMessage="*" Display="Static" ControlToValidate="UserName"></asp:RequiredFieldValidator> </td> </tr> <tr> <td> Password:</td> <td> <asp:TextBox id="UserPass" runat="server" TextMode="Password"></asp:TextBox> </td> <td> <asp:RequiredFieldValidator id="Requiredfieldvalidator2" runat="server" ErrorMessage="*" Display="Static" ControlToValidate="UserPass"></asp:RequiredFieldValidator> </td> </tr> </tbody> </table> <asp:button id="LoginBtn" onclick="LoginBtn_Click" runat="server" text="Login"></asp:button> <p> <asp:Label id="Msg" runat="server" forecolor="red"></asp:Label> </p> </form> --Alt-Boundary-11673.3917421 Content-type: text/html; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body <?xml version="1.0" ?><html> <head> <title></title> </head> <body> <div align="left"><font face="Arial"><span style="font-size:10pt">Hello all,</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">Those interested parties in Installation utilities and Web-Development</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt">I need to code something similar to this in Euphoria</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt">Problem I see is how to have the login and passwords encrypted when</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt">sent to the server and decrypted to search my database for valid users.</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">If I have to, I'll just stick with this....</span></font></div> <div align="left"><br/> </div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt"><%@ Page Language="VB" %></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"><script runat="server"></span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt"> Sub LoginBtn_Click(Sender As Object, E As EventArgs)</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> If Page.IsValid Then</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> If (UserName.Text = "jdoe at somewhere.com") And (UserPass.Text = "password") Then</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> FormsAuthentication.RedirectFromLoginPage(UserName.Text, true)</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> Else</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> Msg.Text = "Invalid Credentials: Please try again"</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> End If</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> End If</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> End Sub</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt"></script></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"><html></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"><head></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"></head></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"><body style="FONT-FAMILY: arial"></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <form runat="server"></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <h2>H2O Software, Inc. Login Page </span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </h2></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <hr size="1" /></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <table></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <tbody></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <tr></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> Username:</td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <asp:TextBox id="UserName" runat="server"></asp:TextBox></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <asp:RequiredFieldValidator id="Requiredfieldvalidator1" runat="server" ErrorMessage="*" Display="Static" ControlToValidate="UserName"></asp:RequiredFieldValidator></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </tr></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <tr></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> Password:</td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <asp:TextBox id="UserPass" runat="server" TextMode="Password"></asp:TextBox></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <asp:RequiredFieldValidator id="Requiredfieldvalidator2" runat="server" ErrorMessage="*" Display="Static" ControlToValidate="UserPass"></asp:RequiredFieldValidator></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </td></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </tr></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </tbody></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </table></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <asp:button id="LoginBtn" onclick="LoginBtn_Click" runat="server" text="Login"></asp:button></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <p></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> <asp:Label id="Msg" runat="server" forecolor="red"></asp:Label></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </p></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> </form></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"></body></span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"></html></span></font></div> <div align="left"></div> --Alt-Boundary-11673.3917421--