Nov. 20, 2011
4:11 p.m.
What does your render code look like? Do you use a form to submit the data? Or JavaScript? Max On 20.11.2011, at 14:52, Edgar J. De Cleene wrote:
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