Installation utilities and Web-Development

new topic     » topic index » view thread      » older message » newer message

--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">&lt;%@ Page
Language=&quot;VB&quot; %&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&lt;script
runat=&quot;server&quot;&gt;</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 = &quot;jdoe at somewhere.com&quot;)
And (UserPass.Text = &quot;password&quot;) 
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 = &quot;Invalid
Credentials: Please try again&quot;</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">&lt;/script&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">&lt;html&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">&lt;head&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">&lt;/head&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&lt;body
style=&quot;FONT-FAMILY: arial&quot;&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">    &lt;form
runat=&quot;server&quot;&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">        &lt;h2&gt;H2O
Software, Inc. Login Page </span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">       
&lt;/h2&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">        &lt;hr
size=&quot;1&quot; /&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">       
&lt;table&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">           
&lt;tbody&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">               
&lt;tr&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                       
Username:&lt;/td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                       
&lt;asp:TextBox id=&quot;UserName&quot;
runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;/td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                       
&lt;asp:RequiredFieldValidator id=&quot;Requiredfieldvalidator1&quot;
runat=&quot;server&quot;
ErrorMessage=&quot;*&quot; Display=&quot;Static&quot; 
ControlToValidate=&quot;UserName&quot;&gt;&lt;/asp:RequiredFieldValidator&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;/td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">               
&lt;/tr&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">               
&lt;tr&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                       
Password:&lt;/td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                       
&lt;asp:TextBox id=&quot;UserPass&quot; runat=&quot;server&quot; 
TextMode=&quot;Password&quot;&gt;&lt;/asp:TextBox&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;/td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                       
&lt;asp:RequiredFieldValidator id=&quot;Requiredfieldvalidator2&quot;
runat=&quot;server&quot;
ErrorMessage=&quot;*&quot; Display=&quot;Static&quot; 
ControlToValidate=&quot;UserPass&quot;&gt;&lt;/asp:RequiredFieldValidator&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">                   
&lt;/td&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">               
&lt;/tr&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">           
&lt;/tbody&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">       
&lt;/table&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">        &lt;asp:button
id=&quot;LoginBtn&quot; onclick=&quot;LoginBtn_Click&quot;
runat=&quot;server&quot; 
text=&quot;Login&quot;&gt;&lt;/asp:button&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">       
&lt;p&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">           
&lt;asp:Label id=&quot;Msg&quot; runat=&quot;server&quot;
forecolor=&quot;red&quot;&gt;&lt;/asp:Label&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">       
&lt;/p&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">    &lt;/form&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">&lt;/body&gt;</span></font></div>
<div align="left"><font face="Arial"><span
style="font-size:10pt">&lt;/html&gt;</span></font></div>
<div align="left"></div>

--Alt-Boundary-11673.3917421--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu