Re: [Django] #34116: custom validation error in password_validators

2022-10-24 Thread Django
#34116: custom validation error in password_validators
---+--
 Reporter:  mojtabaakbari221b  |Owner:  nobody
 Type:  New feature|   Status:  closed
Component:  contrib.auth   |  Version:  4.1
 Severity:  Normal |   Resolution:  wontfix
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by Mariusz Felisiak):

 * resolution:  invalid => wontfix


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701840b80d16f-88803bd2-ed43-4c2c-9363-5af8458288c2-00%40eu-central-1.amazonses.com.


Re: [Django] #34116: custom validation error in password_validators

2022-10-24 Thread Django
#34116: custom validation error in password_validators
---+--
 Reporter:  mojtabaakbari221b  |Owner:  nobody
 Type:  New feature|   Status:  closed
Component:  contrib.auth   |  Version:  4.1
 Severity:  Normal |   Resolution:  invalid
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by Mariusz Felisiak):

 * status:  assigned => closed
 * ui_ux:  1 => 0
 * resolution:   => invalid
 * easy:  1 => 0


Comment:

 You can completely overwrite the list of password validators with the
 `AUTH_PASSWORD_VALIDATORS` setting. As far as I'm aware, there is no need
 for an extended customization in Django itself. See
 TicketClosingReasons/UseSupportChannels for ways to get help.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701840b7def15-d59d00e9-0df2-4f6c-9c0b-19ed555684d9-00%40eu-central-1.amazonses.com.


[Django] #34116: custom validation error in password_validators

2022-10-24 Thread Django
#34116: custom validation error in password_validators
-+--
   Reporter:  mojtabaakbari221b  |  Owner:  nobody
   Type:  New feature| Status:  assigned
  Component:  contrib.auth   |Version:  4.1
   Severity:  Normal |   Keywords:
   Triage Stage:  Unreviewed |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  1
  UI/UX:  1  |
-+--
 i wanna have custom validation error in password_validators,
 I can do this by rewriting the password validator classes and adding
 desired messages through options in the settings file and the
 password_validat section.

 something like this :


 {{{
 AUTH_PASSWORD_VALIDATORS = [
 {
 'NAME':
 'django.contrib.auth.password_validation.NumericPasswordValidator',
 'OPTIONS': {
 'validation_error': 'My Custom Validation Error.',
 },
 },
 ...
 ]
 }}}


 and so on.

 Apart from that I want to return custom validation error, for example in
 our company project we want to send our language based message without
 enabling t10n and l18n. Or ux writer wants to show the user the desired
 error according to business needs,
 But it is not possible unless we directly override the password_validation
 classes and this is an extra and dirty work.

 Is it worth the time? After spending some time, can I make a pull request?

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701840b613bef-763057cb-edcb-4476-93c4-96ac834e4b43-00%40eu-central-1.amazonses.com.