[squeak-dev] [Q] help with requesting a html page

Edgar J. De Cleene edgardec2005 at gmail.com
Sun Nov 20 13:52:25 UTC 2011


Friends:

I have this code

login
| fields aPassword userName logged |
fields := self request propertyAt:  #postFields ifAbsent: [].
fields ifNotNil:[ userName := (fields at: 'username').
    aPassword := (fields at: 'password').
    logged := HVNaughtieUsers new verifyPassword: aPassword forUser:
userName  ].
self halt.

When I hit in the web browser , fields become nil.
But if into Squeak I restart the method and do step by step, fields become
populated with the right values.

How I should do for the right values and avoid nil ?

Thanks in advance

Edgar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20111120/242928c8/attachment.htm


More information about the Squeak-dev mailing list