Search
Preparing search index...
The search index is not available
@thermopylae/core.authentication
Thermopylae
Github
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
repositories/mysql/account
AccountMySqlRepository
Modules
{"Error":"error","MySQL":{"Account":"repositories_mysql_account","Failed Authentications":"repositories_mysql_failed_authentications","Successful Authentications":"repositories_mysql_successful_authentication"},"Redis":{"Activate Account Session":"repositories_redis_activate_account_session","Authentication Session":"repositories_redis_authentication_session","Failed Authentication Attempts Session":"repositories_redis_failed_authentications_session","Forgot Password Session":"repositories_redis_forgot_password_session"}}
Class AccountMySqlRepository
Hierarchy
AccountMySqlRepository
Implements
AccountRepository
<
AccountWithTotpSecret
>
Constructors
constructor
Methods
change
Password
insert
is
Duplicate
read
ByEmail
read
ById
read
ByTelephone
read
ByUsername
set
Disabled
Until
update
Constructors
constructor
new
Account
MySql
Repository
(
)
:
AccountMySqlRepository
Returns
AccountMySqlRepository
Methods
change
Password
change
Password
(
accountId
:
string
, passwordHash
:
string
, salt
:
undefined
|
null
|
string
, hashingAlg
:
number
)
:
Promise
<
void
>
Parameters
accountId:
string
passwordHash:
string
salt:
undefined
|
null
|
string
hashingAlg:
number
Returns
Promise
<
void
>
insert
insert
(
account
:
AccountWithTotpSecret
)
:
Promise
<
undefined
|
null
|
keyof AccountWithTotpSecret
[]
>
Parameters
account:
AccountWithTotpSecret
Returns
Promise
<
undefined
|
null
|
keyof AccountWithTotpSecret
[]
>
is
Duplicate
is
Duplicate
(
account
:
AccountWithTotpSecret
)
:
Promise
<
undefined
|
null
|
keyof AccountWithTotpSecret
[]
>
Parameters
account:
AccountWithTotpSecret
Returns
Promise
<
undefined
|
null
|
keyof AccountWithTotpSecret
[]
>
read
ByEmail
read
ByEmail
(
email
:
string
)
:
Promise
<
undefined
|
null
|
AccountWithTotpSecret
>
Parameters
email:
string
Returns
Promise
<
undefined
|
null
|
AccountWithTotpSecret
>
read
ById
read
ById
(
accountId
:
string
)
:
Promise
<
undefined
|
null
|
AccountWithTotpSecret
>
Parameters
accountId:
string
Returns
Promise
<
undefined
|
null
|
AccountWithTotpSecret
>
read
ByTelephone
read
ByTelephone
(
telephone
:
string
)
:
Promise
<
undefined
|
null
|
AccountWithTotpSecret
>
Parameters
telephone:
string
Returns
Promise
<
undefined
|
null
|
AccountWithTotpSecret
>
read
ByUsername
read
ByUsername
(
username
:
string
)
:
Promise
<
undefined
|
null
|
AccountWithTotpSecret
>
Parameters
username:
string
Returns
Promise
<
undefined
|
null
|
AccountWithTotpSecret
>
set
Disabled
Until
set
Disabled
Until
(
accountId
:
string
, until
:
number
)
:
Promise
<
void
>
Parameters
accountId:
string
until:
number
Returns
Promise
<
void
>
update
update
(
accountId
:
string
, update
:
Partial
<
AccountWithTotpSecret
>
)
:
Promise
<
void
>
Parameters
accountId:
string
update:
Partial
<
AccountWithTotpSecret
>
Returns
Promise
<
void
>
Account
MySql
Repository
constructor
change
Password
insert
is
Duplicate
read
ByEmail
read
ById
read
ByTelephone
read
ByUsername
set
Disabled
Until
update