#31375: make_password shouldn't accept values other than bytes or string as an
argument
------------------------------+--------------------------------------
     Reporter:  iamdavidcz    |                    Owner:  nobody
         Type:  Bug           |                   Status:  new
    Component:  contrib.auth  |                  Version:  3.0
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------

Comment (by Hasan Ramezani):

 Simon , if you agree with the proposed solution :

 {{{
 if not isinstance(password, (bytes, str)):
     raise TypeError('password must be bytes or string (got %s).' %
 type(password).__name__)
 }}}

 I can prepare a patch for it.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31375#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.1a38675c3de39cd61d19256b07d45ca7%40djangoproject.com.

Reply via email to