How do I authenticate a user into Django , when I created that user without a password?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-04-26T02:20:13Z Indexed on 2010/04/26 2:23 UTC
Read the original article Hit count: 311

Filed under:
|
|
|
|
 new_user = User.objects.create_user(r_username, r_email)

I created a user. Now I log him in. But how?

loggedin_user = authenticate(username = r_email, password="!")
loggedin_user = authenticate(username = r_email, password="")
loggedin_user = authenticate(username = r_email)

These don't work.

© Stack Overflow or respective owner

Related posts about django

Related posts about authentication