Part of lp.services.verification.interfaces.logintoken View In Hierarchy
Used for validating email addresses and other tasks that require verifying if an email address is valid, account merging. All LoginTokens must be deleted once they are "consumed".
Text | fingerprint | Undocumented |
Text | validation_phrase | Undocumented |
Method | destroySelf | Remove this LoginToken from the database. |
Method | sendGPGValidationRequest | Send an email message with a magic URL to confirm the OpenPGP key. |
Method | sendMergeRequestEmail | Send an email to self.email (the dupe account's email address) |
Method | sendTeamEmailAddressValidationEmail | Send an email to self.email containing a URL to the page where it |
Method | sendClaimTeamEmail | Email instructions for claiming a team to self.email. |
Method | activateGPGKey | Activate a GPG key. |
Inherited from IAuthToken:
Int | id | Undocumented |
Datetime | date_created | Undocumented |
Datetime | date_consumed | Undocumented |
Choice | tokentype | Undocumented |
Text | token | Undocumented |
Int | requester | Undocumented |
Text | requesteremail | Undocumented |
TextLine | Undocumented | |
Text | redirection_url | Undocumented |
Attribute | title | Title |
Method | consume | Mark this token as consumed by setting date_consumed. |
Method | sendEmailValidationRequest | Send an email message with a magic URL to validate self.email. |
We need this because once the token is used (either when registering a new user or validating an email address), we have to delete it so nobody can use that token again.