Member Junction
    Preparing search index...

    Action that checks password strength and generates secure passwords

    // Check password strength
    await runAction({
    ActionName: 'Password Strength',
    Params: [{
    Name: 'Operation',
    Value: 'check'
    }, {
    Name: 'Password',
    Value: 'MyPassword123!'
    }, {
    Name: 'UserInputs',
    Value: ['john', 'doe', 'john.doe@example.com']
    }]
    });

    // Generate secure password
    await runAction({
    ActionName: 'Password Strength',
    Params: [{
    Name: 'Operation',
    Value: 'generate'
    }, {
    Name: 'Length',
    Value: 16
    }, {
    Name: 'IncludeSymbols',
    Value: true
    }, {
    Name: 'ExcludeAmbiguous',
    Value: true
    }]
    });

    // Generate with requirements
    await runAction({
    ActionName: 'Password Strength',
    Params: [{
    Name: 'Operation',
    Value: 'generate'
    }, {
    Name: 'Requirements',
    Value: {
    minLength: 12,
    maxLength: 20,
    minLowercase: 2,
    minUppercase: 2,
    minNumbers: 2,
    minSymbols: 1
    }
    }]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    AuthorizesCaller: boolean

    True when the action authorizes its caller itself, so a public entry point such as the RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller must hold, or reads and writes only with the caller's own permissions. Leave it false for an action that acts with more authority than its caller, or that reaches data or sends messages the caller chooses but could not otherwise reach.

    The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.

    Methods

    • Checks password strength or generates secure passwords

      Parameters

      • params: RunActionParams

        The action parameters containing:

        • Operation: "check" | "generate" (required)
        • For check operation:
          • Password: Password to check (required)
          • UserInputs: Array of user-related strings to check against (optional)
          • Requirements: Object with minimum requirements (optional)
        • For generate operation:
          • Length: Password length (default: 16)
          • IncludeUppercase: Include uppercase letters (default: true)
          • IncludeLowercase: Include lowercase letters (default: true)
          • IncludeNumbers: Include numbers (default: true)
          • IncludeSymbols: Include symbols (default: true)
          • ExcludeAmbiguous: Exclude ambiguous characters (default: false)
          • Requirements: Object with specific requirements

      Returns Promise<ActionResultSimple>

      Password strength analysis or generated password