name: P-M-Auth-Basic
version: 1.00
description: This plugin applies Plack::Middleware::Auth::Basic to the Movable Type.

plack_middlewares:
  - name: Auth::Basic
    options:
      - key: authenticator
        handler: |
          sub {
              my($username, $password, $env) = @_;

              my $author = MT::Author->load({
                  name         => $username,
                  api_password => $password,
                  type         => MT::Author::AUTHOR(),
              });

              $author;
          }
    apply_to:
      - new_search
      - data_api

name: P-M-Auth-Basic
version: 1.01
description: This plugin applies Plack::Middleware::Auth::Basic to the Movable Type.

plack_middlewares:
  - name: Auth::Basic
    options:
      - key: authenticator
        handler: |
          sub {
              my($username, $password, $env) = @_;

              my $author = MT::Author->load({
                  name         => $username,
                  api_password => $password,
                  type         => MT::Author::AUTHOR(),
                  status       => MT::Author::ACTIVE(),
              });

              $author;
          }
    apply_to:
      - new_search
      - data_api

Add a filter for status.
Add a filter for status.
