setting password with auth.register_bare()

41 views
Skip to first unread message

Dave S

unread,
Nov 7, 2018, 4:51:42 PM11/7/18
to web2py-users
I've had mixed results with using the adduser.py script that was published here a while ago.  I often don't seem to be able to set the password in a usable way.  That is, the step

new_user = auth.register_bare(email="Test...@example.com", password='4example')



creates (or updates) the auth_user table entry as expected, but when I go to  myserver.com/myapp/user/login?next=/
I get a flash message of "invalid login" and I am back to the login form.

Why is this?

/dps

Leonel Câmara

unread,
Nov 16, 2018, 11:13:28 AM11/16/18
to web2py-users
Probably the email is case sensitive in your auth settings which is the default and you're trying to log in with a inexisting email as a result. Change the email to test...@example.com in appadmin and try again.

Dave S

unread,
Nov 16, 2018, 5:10:26 PM11/16/18
to web2py-users

On Friday, November 16, 2018 at 8:13:28 AM UTC-8, Leonel Câmara wrote:
Probably the email is case sensitive in your auth settings which is the default and you're trying to log in with a inexisting email as a result. Change the email to test...@example.com in appadmin and try again.

Hey, I think that's it!  Thank you! 

/dps

Reply all
Reply to author
Forward
0 new messages