Log message #113669

# At Username Text
# Aug 9th 2008, 13:19 jaredhoyt you could just redirect to /users/view/ and have the user info be retrieved using the id in the session rather than using a param and having to check the permission of the current user to access that particular id
# Aug 9th 2008, 13:19 freebox AD7six: http://bin.cakephp.org/view/2102231891
# Aug 9th 2008, 13:19 trueaxe jaredhoyt: believe me or not, but as soon as I set autoRedirect to false, I can't login anymore. The fields of the login form are set with the username and the hashed (!) password
# Aug 9th 2008, 13:18 jaredhoyt trueaxe: btw, another alternative to this is just to have an account page w/o the id as a parameter since the id is already stored in the user session
# Aug 9th 2008, 13:17 AD7six freebox and teh sql log
# Aug 9th 2008, 13:17 freebox ok
# Aug 9th 2008, 13:17 AD7six freebox show what you're doing
# Aug 9th 2008, 13:17 jaredhoyt trueaxe: autoRedirect should not be a factor in a successful login, it's only used for redirection purposes
# Aug 9th 2008, 13:17 freebox AD7six: nothing is returni nothing
# Aug 9th 2008, 13:16 AD7six freebox nothing.
# Aug 9th 2008, 13:16 jaredhoyt trueaxe: read what i posted above ^^ ... you probably are logged in, you're just not being redirected... try logging in and access a protected resource manually
# Aug 9th 2008, 13:16 freebox AD7six: then what i need to count correctly?
# Aug 9th 2008, 13:16 trueaxe but if it is, I can't login anymore oO
# Aug 9th 2008, 13:16 AD7six and it's got nothing to do with what you're doing freebox
# Aug 9th 2008, 13:15 jaredhoyt it will be bypassed if autoRedirect is true
# Aug 9th 2008, 13:15 AD7six freebox plus you don't need to use that technique to achieve a group by.
# Aug 9th 2008, 13:15 jaredhoyt trueaxe: right, but login() wont' be used
# Aug 9th 2008, 13:15 trueaxe ok
# Aug 9th 2008, 13:15 trueaxe ahh
# Aug 9th 2008, 13:15 trueaxe if I delete the autoRedirect line, I can login again
# Aug 9th 2008, 13:15 jaredhoyt trueaxe: right, i corrected myself up there ^^ ... loginRedirect won't work in login() because it will be too late at that point... you have to just redirect manually
# Aug 9th 2008, 13:15 freebox heh
# Aug 9th 2008, 13:15 AD7six freebox it needs updating since that is awful advice.
# Aug 9th 2008, 13:14 freebox in the paginateCount
# Aug 9th 2008, 13:14 trueaxe http://bin.cakephp.org/view/739155711
# Aug 9th 2008, 13:14 freebox in manual have this $sql = "SELECT DISTINCT ON(week, home_team_id, away_team_id) week, home_team_id, away_team_id FROM games";
# Aug 9th 2008, 13:13 freebox im using this
# Aug 9th 2008, 13:13 jaredhoyt trueaxe: are you sure it's not logged in, or are you just not arriving to the correct page... try and access a protected resource after the login manually
# Aug 9th 2008, 13:13 freebox AD7six: http://book.cakephp.org/view/164/pagination
# Aug 9th 2008, 13:13 trueaxe hmm, if I set autoRedirect to false, I really can#t login
# Aug 9th 2008, 13:13 jaredhoyt trueaxe: bin your user controller
# Aug 9th 2008, 13:12 AD7six freebox why do you have a different condition from your paginate call, and why are you using aselect and counting the results in php that's, amongst various things, inefficient
# Aug 9th 2008, 13:12 trueaxe oO, it got even worse. I can't login anymore
# Aug 9th 2008, 13:11 jaredhoyt just redirect manually :)
# Aug 9th 2008, 13:11 jaredhoyt actually, just setting the redirect there won't work...
# Aug 9th 2008, 13:10 jaredhoyt login() occurs near the end of startup() so user should already be logged in and stored in the session
# Aug 9th 2008, 13:10 trueaxe let me try that again
# Aug 9th 2008, 13:10 jaredhoyt shouldn't be
# Aug 9th 2008, 13:10 trueaxe but login is the wrong moment too
# Aug 9th 2008, 13:10 B00mgo_M4N the
# Aug 9th 2008, 13:10 B00mgo_M4N am