Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AccountMySqlRepository

Hierarchy

  • AccountMySqlRepository

Implements

  • AccountRepository<AccountWithTotpSecret>

Constructors

constructor

Methods

changePassword

  • changePassword(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[]>

isDuplicate

  • isDuplicate(account: AccountWithTotpSecret): Promise<undefined | null | keyof AccountWithTotpSecret[]>
  • Parameters

    • account: AccountWithTotpSecret

    Returns Promise<undefined | null | keyof AccountWithTotpSecret[]>

readByEmail

  • readByEmail(email: string): Promise<undefined | null | AccountWithTotpSecret>
  • Parameters

    • email: string

    Returns Promise<undefined | null | AccountWithTotpSecret>

readById

  • readById(accountId: string): Promise<undefined | null | AccountWithTotpSecret>
  • Parameters

    • accountId: string

    Returns Promise<undefined | null | AccountWithTotpSecret>

readByTelephone

  • readByTelephone(telephone: string): Promise<undefined | null | AccountWithTotpSecret>
  • Parameters

    • telephone: string

    Returns Promise<undefined | null | AccountWithTotpSecret>

readByUsername

  • readByUsername(username: string): Promise<undefined | null | AccountWithTotpSecret>
  • Parameters

    • username: string

    Returns Promise<undefined | null | AccountWithTotpSecret>

setDisabledUntil

  • setDisabledUntil(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>