enum

KemalIdentity::Accounts::ActionPurpose

Inherits Enum < Comparable < Value < Object

What an action token authorises its bearer to do, once.

Stored as text rather than as an enum value, unlike AssuranceLevel — an action token is short-lived, so a row outliving a change to this list is not the concern it is for sessions, and a human reading the table benefits from seeing reset rather than 0.

Constants

Reset = 0

Set a new password without knowing the old one.

Confirm = 1

Prove control of an email address.

Invite = 2

Accept an invitation to an account somebody else created. v0.2 ships the value; the flow is later.

Constructors

from_column(value : String) : self
Source

Instance methods

confirm?

Returns true if this enum value equals Confirm

Source
invite?

Returns true if this enum value equals Invite

Source
reset?

Returns true if this enum value equals Reset

Source
to_column
Source