# |
Aug 9th 2008, 13:22 |
freebox |
AD7six: yes, where i need to put paginateCount? |
# |
Aug 9th 2008, 13:22 |
trueaxe |
yeah |
# |
Aug 9th 2008, 13:21 |
jaredhoyt |
you mean the view action? |
# |
Aug 9th 2008, 13:21 |
AD7six |
freebox have you read the sql log? |
# |
Aug 9th 2008, 13:21 |
jaredhoyt |
check in the view? |
# |
Aug 9th 2008, 13:21 |
trueaxe |
and redirect to it there |
# |
Aug 9th 2008, 13:21 |
AD7six |
? |
# |
Aug 9th 2008, 13:21 |
AD7six |
freebox you put paginateCount in The Category controller |
# |
Aug 9th 2008, 13:21 |
trueaxe |
I will check in the view if the user id is set |
# |
Aug 9th 2008, 13:20 |
trueaxe |
thanks |
# |
Aug 9th 2008, 13:20 |
jaredhoyt |
but you're still logged in |
# |
Aug 9th 2008, 13:20 |
trueaxe |
sure -.- |
# |
Aug 9th 2008, 13:20 |
jaredhoyt |
it's because you're not being redirect |
# |
Aug 9th 2008, 13:20 |
trueaxe |
yeah, your're right |
# |
Aug 9th 2008, 13:20 |
jaredhoyt |
what you're describing is exactly what i'm saying should happen.... i know you're just sitting at the login |
# |
Aug 9th 2008, 13:20 |
trueaxe |
hmm, doh me |
# |
Aug 9th 2008, 13:19 |
jaredhoyt |
trueaxe: and then did you try and access /users/view/id ? |
# |
Aug 9th 2008, 13:19 |
trueaxe |
jaredhoyt: now that's the solution! |
# |
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. |