Re: Password Field Not being encrypted

2011-08-31 Thread raj
Ya, I had to use the set_password method. And I used it by creating my own save function in the UserForm class. Thanks for the help. On Aug 31, 10:22 am, lokesh wrote: > hi, >    Use set_password method from django contrib auth models in your > custom model. while saving

Re: Password Field Not being encrypted

2011-08-31 Thread lokesh
hi, Use set_password method from django contrib auth models in your custom model. while saving your custom form pass the password to set password method and save returned encrypted password in your model. Lokesh On Aug 31, 12:05 am, raj wrote: > Hey guys, I'm trying to

Re: Password Field Not being encrypted

2011-08-30 Thread Jirka Vejrazka
Raj, PasswordInput deals with browser forms to make sure that a password can't be seen in the form by someone looking over user's shoulder. But it does nothing to encrypt passwords in database. Why don't you check out django.contrib.auth.models for inspiration about encrypting passwords if

Password Field Not being encrypted

2011-08-30 Thread raj
Hey guys, I'm trying to make a custom registration form for a custom UserProfile class. I have the following form: class UserForm(ModelForm): username = forms.EmailField(label = _("Email"), widget = forms.TextInput(attrs ={ 'id':'email'}), required=True) first_name =