Ticket #16262: auth-backend.patch

File auth-backend.patch, 374 bytes (added by Mitar, 13 years ago)
  • backends.py

    old new  
    1717            user = User.objects.get(username=username)
    1818            if user.check_password(password):
    1919                return user
     20        except ValueError:
     21            return None
    2022        except User.DoesNotExist:
    2123            return None
    2224
Back to Top