Too many redirects

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Too many redirects

Bernat Romagosa
Hi list,
A
I'm experiencing a Too many redirects error in a webapp built with Iliad.

The error occurs upon logging in, I've always used the same procedure for handling users and this is the first time this happens, so I'm not sure what's wrong... here's my code:

MILoginPage >> tryToLogin: aMockUser
(MUser existsWithUsername: aMockUser username)
ifFalse: [ self error: self controller userNotFoundText ]
ifTrue: [ 
| user |
user := MUser findByUsername: aMockUser username.
user password = aMockUser password md5Hashed
ifFalse: [ self error: self controller wrongPasswordText ]
ifTrue: [ self session login: user ] ]

Then, MISession >> #login: looks as follows:

MISession >> login: aUser
self user: aUser.
self redirect

Any idea what's wrong with my code?

Thanks!

Bernat.
--
Bernat Romagosa.

--
You received this message because you are subscribed to the Google Groups "Iliad project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.