fix a bug, when there is no user field
svn: r11982
This commit is contained in:
parent
98c8abeb3b
commit
a51ea08cb4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user