# Loads user information, logs users in and out, controls cookies my $user = My::Authentication::load(); #### # Loads user information, logs users in and out, controls cookies my $user = My::Authentication->load; #### #allow user administration. (for registration etc) My::Authentication::add_user($username, $password, { #hash to store data }, [ roles ]); My::Authentication::del_user($username); #### #allow user administration. (for registration etc) My::Authentication->add_user($username, $password, { #hash to store data }, [ roles ]); My::Authentication->del_user($username); #### #allow user administration. (for registration etc) my $suspect = My::Authentication->add_user($username, $password, { #hash to store data }); $suspect->add_roles(roles); #### # Loads user information, logs users in and out, controls cookies my $user = My::Authentication->load; # require a user to be an admin or redirect them to the login page $user->require('admin'); # require a user to be an admin or redirect them to a specific page $user->require('admin', '/login.html'); # require a user to be an admin, or give them an "Access denied page" $user->require('admin', undef);