Dummy form for opting out.
Delete the user object from the database and store the SHA1 hashed email address in the database to make sure this person does not receive any further invitation emails.
The standard form that is displayed to users when registering. It gives a user the option to change their email address.
Opt-out email addresses are stored as SHA1 hashes to make sure we don’t accidentally collect any more data once a person signalled they’re not interested in receiving any more invitation emails from us.
Name : | done |
---|
Name : | register |
---|
Name : | opt-out |
---|
Name : | opt-out-done |
---|
Invite a given email address and return a (User, sent) tuple similar to the Django django.db.models.Manager.get_or_create() method.
If a user with email address does not exist:
If a user with email address exists and user.is_active == False:
If a user with email address exists:
If the email address is blocked:
To customize sending, pass in a new sendfn function as documented by inviter.utils.send_invite:
sendfn = lambda invitee, inviter, **kwargs: 1
invite("foo@bar.com", request.user, sendfn = sendfn)
Parameters: |
|
---|
Send the default invitation email assembled from inviter/email/subject.txt and inviter/email/body.txt
Both templates will receive all the kwargs.
Parameters: |
|
---|
We want to give the user also the option to not receive any invitations anymore, which is happening in this view and inviter.forms.OptOutForm.
A registration view for invited users. The user model already exists - this view just takes care of setting a password and username, and maybe update the email address. Anywho - one can customize the form that is used.
alias of RegistrationForm
Unfortunately just a copy of django.contrib.auth.views.password_reset_confirm
Unfortunately just a copy of django.contrib.auth.views.password_reset_confirm
Handles retrieval of users from the token and does a bit of access management.
Overriding the default dispatch method on Django’s views to do some token validation and if necessary deny access to the resource.
Also passes the user as first argument after the request argument to the handler method.
Import an attribute from a module.