Help for this page

Select Code to Download


  1. or download this
    post '/adduser' => sub {
        create_user username=>param{'Username'};
        user_password username => param{'Username'}, password => param{'Pa
    +ssword'};                                      
    };
    
  2. or download this
    get '/admin' => require_role admin => sub
    {
        return 'You found the admin page!';
    };
    
  3. or download this
    Provider# ls
    Base.pm  Config.pm  Database.pm  Example.pm  Unix.pm
    ...
    Unix.pm:sub authenticate_user {
    Unix.pm:sub get_user_details {
    Unix.pm:sub get_user_roles {