• Has valid password validator

    Parameters

    • passwordStrategy: PasswordValidateStrategy

      injected password strategy used to handle the password validation

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query]. Note:

      • body is required

    Returns Promise<number>

    200 Status OK

    Description

    This validator will check if password is valid by applying the following steps in sequence:

    1. Get password from context.body

    2. Check if password exist

    3. Check if password is valid

    Throws

    400 NBError Bad Request

    • password is invalid

Generated using TypeDoc