Hi,
I am planning to develop an "registration requires invitation" to my custom
Auth.
auth.settings.registration_requires_invitation = True
auth.messages.invitation = \
'HI, You have been invited to join XXXXX, click on the link
http://' + self.db.request.env.http_host + \
self.db.CURL('default', 'user', args=['invite']) + \
'?invitationkey=%(key)s to register'
The flow is:
Registered user goes to /default/user/invite, so the user puts the e-mail
of a friend and auth does:
1. Store an invitation key in to auth_invitation table
(user_id_who_invited, invitation_key, invited_id, signature)
2. Send an email to the invited user with a link to the register page
with ?invitationkey=KFDNJFLDKNFJDLNFJDNF&*9340540985
3. Invited user clicks in the link, auth checks if invitation ID exists,
so user are redirected to the register page, if sucess invitation_key is
set to NULL, invited_id is set to the new user id.
4. The user who invited receives an confirmation email "The user you
have invited registered!"
Auth will have a function bulk_invitation(list_of_emails) so developers can
use to send mass invitation
Have somebody already implemented this? can share?
what are the chances to include it in Auth?
--
Bruno Rocha
[http://rochacbruno.com.br]