summaryrefslogtreecommitdiff
path: root/GradeBook.tcl
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-01-23 21:47:24 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2011-01-23 21:47:24 -0500
commit5744c93cbc355bc013ebfa49cf80dc450558f17a (patch)
tree0cb12640dbf453a1d3de128a92f975b683750408 /GradeBook.tcl
parent994f5a336e963bc91722afd622b2d3b4a3487654 (diff)
downloadGradeBook-5744c93cbc355bc013ebfa49cf80dc450558f17a.tar.gz
GradeBook-5744c93cbc355bc013ebfa49cf80dc450558f17a.zip
login fill info from cookie
Ignore-this: 8b1bb2979b5238fab9a53856b2aafbe3 darcs-hash:20110124024724-067c0-f2f754dbacb92bef402cf2ef90e6bcb00bdc611c.gz
Diffstat (limited to 'GradeBook.tcl')
-rwxr-xr-xGradeBook.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/GradeBook.tcl b/GradeBook.tcl
index 24dfdbd..9292cd3 100755
--- a/GradeBook.tcl
+++ b/GradeBook.tcl
@@ -302,11 +302,12 @@ proc Greetings {} {
proc askToLogin {} {
global script_name
+ global user password
puts "<div class=\"login\">"
puts "Either you are here first time or you password and user name does not match. <br>"
puts "Please login <br>"
puts "<form name=\"input\" action=\"$script_name\" method=\"post\" />"
- puts {Login: <input type="text" name="user"><br>}
+ puts "Login: <input type=\"text\" name=\"user\" value=\"$user\"><br>"
puts {Password: <input type="password" name="password"><br>}
puts {<input type="hidden" name="action" value="logon"/>}
puts {<input type="submit" value="Submit" />}