Class EmployeeService

Represents a service for managing employees.

Template

The type of employee object.

Hierarchy

Implements

Constructors

Properties

db: Dexie
http: any
methodName: string = 'employee'
moduleName: string = 'employees'

Methods

  • Changes the password of the user with the given user UID.

    Parameters

    • userUid: string

      The UID of the user whose password should be changed.

    • oldPassword: string

      The user's current password.

    • newPassword: string

      The new password to set for the user.

    Returns Promise<boolean>

    A promise that resolves to true if the password was changed successfully, or false otherwise.

  • Logs in a user with the given user uid and password.

    Parameters

    • userUid: string

      The uid of the user to log in.

    • password: string

      The password of the user to log in.

    Returns Promise<boolean>

    A promise that resolves to true if the login was successful, or false otherwise.

Generated using TypeDoc