user

class gratipay.security.user.User(participant=None)[source]

Represent a user of our website.

classmethod from_session_token(token)[source]

Find a participant based on token and return a User.

classmethod from_id(userid)[source]

Find a participant based on id and return a User.

classmethod from_username(username)[source]

Find a participant based on username and return a User.

sign_in(cookies)[source]

Start a new session for the user.

keep_signed_in(cookies)[source]

Extend the user’s current session.

sign_out(cookies)[source]

End the user’s current session.