On 23.07.2008, at 12:35, Grégory Joseph wrote:
But you'll have to think about handling of duplicates etc. What if
the *same person* wants to register on siteX and siteY, how do you
handle that ? (because as it, it will just be rejected, saying
this user already exists, while what you want is probably add some
roles or groups to it)
Well, if the sites are related (and therefore user accounts should
be "shared") then one could really solve this via roles/groups
(e.g. the "Apple ID" which might be valid for bugreport.apple.com
as well as for the Apple Store or .Mac). If the sites are not
related at all I don't see a problem in showing a
"username already taken" error message.
Frustrating if its the actual same person.
1. Chances are quite that the same user registers for an account for
two totally independent sites that happen to be in the same magnolia
instnce.
2. If you use a common name, this is the standard. This happens to me
all the time when I try to sign up somewhere with "will" as username.
3. One could check the email address though. If the address matches,
then on could display a different "login/confirmation" mask. The
problem however is: If the user signs up for site a and the is told
that he already has a user account for site b on this server, and site
b is something you would not want to talk about publicly (you never
know!) then this might be the bigger problem than telling the user
that the username is already taken.
Or what solution did you have in mind?
Also: defaultBaseUrl is what it says it is - if you add this in
public-user-registration config it, you'll have to rename it. But
at that point, you'll probably want different emails anyway, so
you could just as well hardcode it in the email.
Right, but you would at least want to specify different mail
templates depending on the site and language.
Well you configure the mail templates in the strategies,
Exactly, and that's why we need site specific configurations - to
allow different strategies and templates for each site.
-will
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------