I simply don't get this.
I just did yet another fresh install, this time with 'mailto:lars@pinds.com';, username 'lars pind'. Login just fine.
Also, knowing the code, I can't think of anything that would cause that kind of behavior. "Unknown username", yes, but not with the kind of system to it that you're suggesting.
So I'm going to have to ask you to dig one step deeper into this.
It does prompt you for email, not username, right?
Can you tell me the results of a
'select * from parties'
and
'select * from users'
And then I'm going to have to ask you to start troubleshooting this a bit for me.
The login page calls auth::authenticate, which in turn calls a bunch of other procs, most notably auth::local::authentication::Authenticate.
However, this proc takes username and password, so auth::authenticate looks up by email and finds the username to pass to that proc.
Insert some ns_log Notice statements at strategic points, and see if you can trace the message and which condition triggers it.
That would be most helpful.
Thanks a bunch for your help.
/Lars