django comes with an inbuilt form that does the hashing and saving of password.
from django.contrib.auth.forms import UserCreationForm Simliarly an inbuilt form that does the login, logout and such. Look at the source in the path above, and/or refer to the documentation of django auth: http://docs.djangoproject.com/en/dev/topics/auth/ Best! On Tue, Nov 10, 2009 at 6:40 PM, Shu Hung (Koala) <koa...@gmail.com> wrote: > > On Tue, Nov 10, 2009 at 8:55 PM, Brett Parker < > idu...@sommitrealweird.co.uk> wrote: > >> >> Well, a password field isn't actually a different type of data than a >> text field, so you'd usually just override the form's default for the >> password field, using a modelform to specify that you want it to appear >> as a password widget. >> >> -- >> Brett Parker >> > > A password field is different from text. > Usually a password field would store hashed password. > > How do I specify, with django's model, that a field need to be encryped and > hased before store? > > > Koala Yeung > > > > > -- Regards, Lakshman becomingguru.com lakshmanprasad.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---