I have implemented a password recovery functionality in django. With my method, the new password will be sent to the email id entered. It works fine when given the correct e
try: user = UniversityDetails.objects.get(email=email) except UniversityDetails.DoesNotExist: user = None
I also see you're storing your passwords in plaintext (a big security no-no!). Consider using the built-in auth system instead.