Re: Auth config problem

2010-07-19 Thread Felix Fennell
Thanks very much for the code Cricket, it helped tonnes! I know have Auth functioning correctly - I still feel its a bit of a dark art but if it works it works. Anyway thanks again for your help. Felix On 19 July 2010 00:31, cricket zijn.digi...@gmail.com wrote: On Sun, Jul 18, 2010 at 4:47

Re: Auth config problem

2010-07-18 Thread Felix
Hi, I was under the impression that Auth would redirect to the controller and action they were trying to access before being redirected to the login page. If I specify a redirect will it apply to all controllers/actions using Auth, e.g. If I set the Auth redirect to accounts/view then someone

Re: Auth config problem

2010-07-18 Thread Felix Fennell
Ok, I just tried setting the loginRedirect and still nothing happens, as in I'm not redirected, again there were no errors shown and I don't know if the login was successful. The only difference now that loginRedirect is set is after I click login and am sent back to the login page the password

Re: Auth config problem

2010-07-18 Thread cricket
On Sun, Jul 18, 2010 at 4:47 AM, Felix Fennell fe...@felixfennell.co.uk wrote: Ok, I just tried setting the loginRedirect and still nothing happens, as in I'm not redirected, again there were no errors shown and I don't know if the login was successful. Set debug to 2 so that you can at least

Auth config problem

2010-07-17 Thread Felix
Hi, I'm trying to add the Auth component to my app, I'm using a custom database/model called accounts (database/table: accounts, model: Account). The database uses the fields; = e-mail (acts as username) = password = ( ... other non-important fields) I've configured the app controller as

Re: Auth config problem

2010-07-17 Thread Felix
Sorry just noticed a mistake, the database field for e-mail is named email NOT e-mail as originally posted. On Jul 17, 3:31 pm, Felix fe...@felixfennell.co.uk wrote: Hi, I'm trying to add the Auth component to my app, I'm using a custom database/model called accounts (database/table:

Re: Auth config problem

2010-07-17 Thread cricket
On Sat, Jul 17, 2010 at 10:31 AM, Felix fe...@felixfennell.co.uk wrote: Hi, I'm trying to add the Auth component to my app, I'm using a custom database/model called accounts (database/table: accounts, model: Account). The database uses the fields; = e-mail (acts as username) = password