Haven't done any work on this, but I made some notes that might be of
help.
patrickk wrote:
> I´m using the built-in authentication and now I´m trying to do a
> registration page (for the website-user, not the admin-user).
> I´m using an AddManipulator (manipulator = User.AddManipulator()),
> but I do have some problems:
>
> 1. how do I save the password (seems that I have to change new_data
> which doesn´t look clean to me ...) - note: I know how to generate
> the password from a raw string though.

Are you overriding the save method in the manipulator? You can convert
the password in that method as an option.

> 2. there´s no validation (how do I get that?)

http://www.djangoproject.com/documentation/forms/#validators

> 3. date_joined and last_login seems to be required, as well as
> first_name and last_name (although they don´t show up as required in
> the admin-interface)

This has to do with the whole "null" and "blank" thing. See
http://www.b-list.org/weblog/2006/06/28/django-tips-difference-between-blank-and-null
for more details. Those fields in the user model are set as "blank" but
not as "null", which is causing this problem. If you don't want to use
those fields just pass an empty string to the constructor, that should
work.

> 
> has anybody done that already? any pointers?
> 
> thanks,
> patrick


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to