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.
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
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
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:
>
> 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
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.
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
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
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
9 matches
Mail list logo