Log message #113662

# At Username Text
# 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
# Aug 9th 2008, 13:10 B00mgo_M4N i
# Aug 9th 2008, 13:10 trueaxe I tried
# Aug 9th 2008, 13:10 jaredhoyt exchange that with Auth->autoRedirect = false; and either redirect yourself in login() or set the loginRedirect there
# Aug 9th 2008, 13:10 trueaxe yeah, I guess that too
# Aug 9th 2008, 13:09 jaredhoyt so user('id') doesn't exist yet =P
# Aug 9th 2008, 13:09 jaredhoyt trueaxe: Auth has no user set because i assume you're doing that in beforeFilter() which is before AuthComopent's startup() is run
# Aug 9th 2008, 13:08 AD7six freebox probably the fact that you implemented it.