General Question Regarding Django Password Validation differences

2020-04-19 Thread Ahmed Khairy
I have used UserCreationForm and got this result below with no validations regarding the password while there are other Usercreationforms with password validations. I am using Django 2.2 -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: reg: How to use Django Password validation in my existing views?

2019-02-06 Thread Mike Dewhirst
On 6/02/2019 6:32 pm, Mike Dewhirst wrote: On 6/02/2019 5:15 pm, 'Amitesh Sahay' via Django users wrote: I have an existing django views.py where I have some password, username, and email validation logic applied. However, going forward I need to apply more advanced password validation. for

Re: reg: How to use Django Password validation in my existing views?

2019-02-05 Thread Mike Dewhirst
On 6/02/2019 5:15 pm, 'Amitesh Sahay' via Django users wrote: I have an existing django views.py where I have some password, username, and email validation logic applied. However, going forward I need to apply more advanced password validation. for e.g. password length limitation, uppercase

Re: reg: How to use Django Password validation in my existing views?

2019-02-05 Thread 'Amitesh Sahay' via Django users
Anyway, I have found the answer to my own question. Below is the modified views.py code. def register(request): validators = [MinimumLengthValidator, NumberValidator, UppercaseValidator] if request.method == 'POST': # some code password = request.POST('password') try:

Re: Django Password Validation

2016-05-19 Thread James Schneider
> > Thanks for the Suggestion. > James, in the option that you provided makes the User change the Password of the Logged in user which might turn out to be a costly operation. Not entirely sure what you mean? If you make the username available to the ModelForm class (either as a field value or

Re: Django Password Validation

2016-05-18 Thread Arun S
Hi, Thanks for the Suggestion. James, in the option that you provided makes the User change the Password of the Logged in user which might turn out to be a costly operation. But Yes, validating within the View and then using Authenticate() does sound easier.

Re: Django Password Validation

2016-05-18 Thread James Schneider
On Wed, May 18, 2016 at 12:08 AM, Arun S wrote: > Hi , > > I have a small issue with the Validation of Passwords in the Change > Password Page. > > Due to certain different requirements, i have written my own Custom Forms > for Change Password. > > Now in this, I would want

Re: Django Password Validation

2016-05-18 Thread orzodk
Arun S writes: > Hi , > > I have a small issue with the Validation of Passwords in the Change Password > Page. > > Due to certain different requirements, i have written my own Custom Forms for > Change Password. > > Now in this, I would want to first Validate the Old

Django Password Validation

2016-05-18 Thread Arun S
Hi , I have a small issue with the Validation of Passwords in the Change Password Page. Due to certain different requirements, i have written my own Custom Forms for Change Password. Now in this, I would want to first Validate the Old Password Field with the Current Users Password. The