l.s.v.i.l.ILoginToken(IAuthToken) : interface documentation

Part of lp.services.verification.interfaces.logintoken View In Hierarchy

The object that stores one time tokens.

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 email 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.
fingerprint =
Undocumented
validation_phrase =
Undocumented
def destroySelf():
Remove this LoginToken from the database.

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.

def sendGPGValidationRequest(key):
Send an email message with a magic URL to confirm the OpenPGP key. If fingerprint is set, send the message encrypted.
def sendMergeRequestEmail():
Send an email to self.email (the dupe account's email address) with the URL of a page to finish the merge of Launchpad accounts.
def sendTeamEmailAddressValidationEmail(user):
Send an email to self.email containing a URL to the page where it can be set as the requester's (the team) contact address.

The message also includes the team administrator who made this request on behalf of the team.

def sendClaimTeamEmail():
Email instructions for claiming a team to self.email.
def activateGPGKey(key, can_encrypt):
Activate a GPG key.
ReturnsA Launchpad key, and whether it's new.
API Documentation for Launchpad, generated by pydoctor at 2019-05-20 00:00:04.