View.py
def login(request):
    state = "Please log in below..."
    username = password = ''
    if request.method=='POST':
        username = request.POST['username']
        password = request.POST['password']

        user = authenticate(username=username, password=password)
        if user is not None:
            if user.is_active:
                login(request,user)
                state = "You're successfully logged in!"
            else:
                state = "Your account is not active, please contact
the site admin."
        else:
            state = "Your username and/or password were incorrect."

    return render_to_response('auth.html',{'state':state, 'username':
username})

every time i try to enter username and password its keeps on sending
me this error
ValueError at /login/
Unknown password hashing algorithm 'yara'. Did you specify it in the
PASSWORD_HASHERS setting?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to