]> andersk Git - sql-web.git/blobdiff - tpl/login.php
form submit bug preventing signups
[sql-web.git] / tpl / login.php
index 54abd2b8e2f4dbe5d50f3e27809ecbd9cf16cf2c..cd9acc5ed5efb5af17ca98578fed59fccb5d8b36 100644 (file)
@@ -1,8 +1,7 @@
 <?php
 include 'head.php';
 
-$thisTxt = isSSL()?' with this Certificate':' via SQL';
-$otherTxt = isSSL()?' without a Certificate':' with a Certificate';
+$thisTxt = isSSL()?' using this Certificate':' using your MySQL Password';
 ?>
 
 <h2>Login</h2>
@@ -11,28 +10,28 @@ $otherTxt = isSSL()?' without a Certificate':' with a Certificate';
 
 <?php if (!isSSL()): ?>
 
-<form method=post>
-<h3>Enter your SQL login:</h3>
-<p>username: <input type="text" name="u"></p>
+<form method=post action="<?=$URI?>">
+<h3>Please enter your MySQL login information:</h3>
+<p>username: <input type="text" name="u" value="<?=isset($i_u)?$i_u:''?>"></p>
 <p>password: <input type="password" name="p"></p>
 
 <?php elseif (isSSL() && !empty($SSLCred)): ?>
 
-<form method=post>
-<h3>You are identifed as: <?=$SSLUsername?></h3>
+<form method=post action="<?=$URI?>">
+<h3>You are identified as: <?=$SSLUsername?></h3>
 <p><?=$SSLName?></p>
 <p><?=$SSLEmail?></p>
 
 <?php endif; ?>
 
-<?php if (!isSSL() || $Login2->canLogin()): ?>
+<?php if (!isSSL() || $LoginSSL->canLogin()): ?>
 
 <input type=submit value="Login<?=$thisTxt?>">
 </form>
 
 <?php elseif (isSSL() && !is_null($SSLCred)): ?>
 
-<h3><a href="signup">Signup</a> to use this service.</h3>
+<h3><a href="do/signup">Sign up</a> to use this service.</h3>
 
 <?php endif; ?>
 
This page took 0.040158 seconds and 4 git commands to generate.