Ticket #15067: 15067.patch

File 15067.patch, 517 bytes (added by kfrazier, 5 years ago)
  • django/contrib/auth/views.py

     
    180180    try:
    181181        uid_int = base36_to_int(uidb36)
    182182        user = User.objects.get(id=uid_int)
    183     except (ValueError, User.DoesNotExist):
     183    except (ValueError, User.DoesNotExist, OverflowError):
    184184        user = None
    185185
    186186    if user is not None and token_generator.check_token(user, token):
Back to Top