Class

PasswordState

PasswordState()

A class that manages the password login state.
Constructor

# new PasswordState()

View Source lib/state/users/PasswordState.ts, line 11

Extends

Members

Methods

# getRetryAfter(userID) → {number}

Gets the number of seconds until when a new password login can be attempted.
Parameters:
Name Type Description
userID string The UUID of the user.

View Source lib/state/users/PasswordState.ts, line 90

number

# getUserState(userID) → {LocalStorageUser}

Gets the state of the specified user.
Parameters:
Name Type Description
userID string The UUID of the user.
Overrides:

View Source lib/state/users/UserState.ts, line 25

# read() → {PasswordState}

Reads the current state.
Overrides:

View Source lib/state/users/PasswordState.ts, line 82

# setRetryAfter(userID, seconds) → {PasswordState}

Sets the number of seconds until a new password login can be attempted.
Parameters:
Name Type Description
userID string The UUID of the user.
seconds string Number of seconds the passcode is valid for.

View Source lib/state/users/PasswordState.ts, line 99

# write() → {State}

Encodes and writes the data to the local storage.
Inherited From:

View Source lib/state/State.ts, line 49

State