Skip to content

Instantly share code, notes, and snippets.

@ydnax
Created March 2, 2012 15:25
Show Gist options
  • Save ydnax/1959162 to your computer and use it in GitHub Desktop.
Save ydnax/1959162 to your computer and use it in GitHub Desktop.
newpass=id_generator(50)
user.set_password(newpass)
user.save()
au=authenticate(username=user, password=newpass)
print au
login(request, au)
print request.user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment