[Zope-CMF] using email address as userid

alan runyan alan runyan" <runyaga@runyaga.com
Mon, 1 Jul 2002 17:41:12 -0500


> Hi all,
>
> I'm trying to create a site where the user logs in
> with their email address. CMF seems to have a check to
> make sure we dont add any users with nasty things like
> '@' and '.'  Is there a good reason for this? (ie Will
> I break something if I tell it to go ahead and create
> the user anyway)

nope.. wont break anything ... you need to subclass MembershipTool and
override the 'allowed_characters' regex

> If the best solution is not to store the email as the
> userid, does anyone have any tips on what I should use
> instead (a numerical sequence?).

/me shrugs

maybe use their email username? and increment numbers behind it? thats what
I've done w/
commerce tool

~runayga

> Thanks in advance...
>
> joe
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests
>