Gantry::Control::C::Users - User Management


Gantry documentation  | view source Contained in the Gantry distribution.

Index


NAME

Top

Gantry::Control::C::Users - User Management

SYNOPSIS

Top

  use Gantry::Control::C::Users;

DESCRIPTION

Top

This Handler manages users in the database to facilitate the use of that information for authentication, autorization, and use in applications. This replaces the use of htpasswd for user management and puts more information at the finger tips of the application.

APACHE

Top

  <Location /admin/users >
    SetHandler  perl-script

    PerlSetVar  title   "User Management: "

    PerlSetVar  dbconn  "dbi:Pg:dbname=..."
    PerlSetVar  dbuser  "<database_username>"
    PerlSetVar  dbpass  "<database_password>"
    PerlSetVar  dbcommit  off

    PerlHandler Gantry::Control::C::Users
  </Location>

DATABASE

Top

This is the auth_users table that is used by this module. It is also used by the Authentication modules to verify usernames and passwords. The passwords are ecrypted by the crypt(3) function in perl.

  create table "auth_users" (
    "id"            int4 default nextval('auth_users_seq') NOT NULL,
    "user_id"       int4,
    "active"        bool,
    "user_name"     varchar,
    "passwd"        varchar,
    "crypt"         varchar,
    "first_name"    varchar,
    "last_name"     varchar,
    "email"         varchar
  );

METHODS

Top

Most of the methods are mapped to urls.

do_add
do_delete
do_edit
do_main
redirect_to_main

Decides where to go after a button press.

One method is provided for templates to call.

Provides the site nav links for use at the top and/or bottom of the page.

SEE ALSO

Top

Gantry::Control(3), Gantry(3)

LIMITATIONS

Top

The passwords for users are enrypted so they can not be seen at all. In some situations this could be a very big problem.

AUTHOR

Top

Tim Keefer <tkeefer@gmail.com>

COPYRIGHT

Top


Gantry documentation  | view source Contained in the Gantry distribution.