fix a bug, when there is no user field

svn: r11982
This commit is contained in:
Eli Barzilay 2008-10-09 01:33:35 +00:00
parent 98c8abeb3b
commit a51ea08cb4

View File

@ -225,8 +225,10 @@
(tr (td ([colspan "2"] [align "center"])
(input ([type "submit"] [name "post"]
[value "Login"])))))))))]
[user (clean-str (aget (request-bindings request) 'user))]
[passwd (aget (request-bindings request) 'passwd)]
[bindings (request-bindings request)]
[user (aget bindings 'user)]
[passwd (aget bindings 'passwd)]
[user (and user (clean-str user))]
[user-data (get-user-data user)])
(cond [(and user-data
(string? passwd)