gws.plugin.account.core

Constants for user accounts.

Source code: gws.plugin.account.core

Module Contents

class gws.plugin.account.core.Category

Categories of temporary codes, also used as template subject prefixes for emails.

onboarding = 'onboarding'

Code for the onboarding procedure.

resetPassword = 'resetPassword'

Code for a password reset, not used yet.

class gws.plugin.account.core.Columns

Column names in the accounts table.

email = 'email'

Email address.

mfaSecret = 'mfasecret'

MFA secret.

mfaUid = 'mfauid'

Uid of the selected MFA adapter, empty for no MFA.

password = 'password'

Password hash.

status = 'status'

Account status, see Status.

tc = 'tc'

Temporary code.

tcCategory = 'tccategory'

Category of the temporary code, see Category.

tcTime = 'tctime'

Creation time of the temporary code, as a Unix timestamp.

username = 'username'

the login column is configured with usernameColumn.

Type:

Login name, not used

class gws.plugin.account.core.Status

Bases: gws.Enum

Account status.

active = 10

Active, the user can log in.

new = 0

Created or reset, onboarding not started.

onboarding = 1

Onboarding in progress.