OK... I guess this issue is resolved! :)
On Dec 31, 4:46 pm, Erik M Jacobs <
erikmjac...@gmail.com> wrote:
> Actually, I am wondering if this is the problem:
>
> config.authentication_keys = [ :login ]
>
> My Admin model does not have a login field. This brings up a
> question:
>
> Do all Devise models need to use the same auth key? Is it possible to
> have some models with email and some with login?
>
> On Dec 31, 1:41 pm, José Valim <
jose.va...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Can you please reproduce the error in a smaller application?
>
> > On Dec 31, 7:25 pm, Erik M Jacobs <
erikmjac...@gmail.com> wrote:
>
> > > I have an app that I have been running with two Devise models
> > > successfully for a while. I recently upgraded the application to
> > > Rails 3. I'm now trying to add a model to build an Admin area, and
> > > having issues.
>
> > > If I create an Admin either from the console or the web, I am
> > > successful.
> > > If I do the "forgot password", the password is reset and the user is
> > > logged in.
> > > If I sign out and attempt to sign back in, I always get "Invalid email
> > > or password."
>
> > > I notice that on the other models, if I enter an incorrect user/
> > > password, there is still an SQL call made. But on the new Admin
> > > model, there is no SQL call made.