NAME

OpusVL::AppKit::RolesFor::Schema::AppKitAuthDB::Result::User

VERSION

version 6

setup_authdb

This need to be called as the User result class is being setup to finish the table setup.

check_password

The check_password function is usually called by Catalyst to determine if the password is correct for a user. It returns 0 for false and 1 for true. If the database schema has a check_password function that is used, otherwise the standard Bcrypt function is used to check the hash stored in the database.

getdata

setdata

disable

Disables a users account.

enable

Enables a users account.

params_hash

Finds all a users parameters, matches them with the value and returns a nice Hash ref.

set_param_by_name

Sets a users parameter by the parameter name.
Returns:
    undef   - if the param could be found by name.
    1       - if the param was set successfully.

delete_param_by_name

Deltes a users parameter by the parameter name.
Returns:
    undef   - if the param could be found by name.
    1       - if the param was deleted successfully.

roles_allowed

Returns the list of roles this user is allowed to modify.

can_modify_user

This method returns true if the user is allowed to modify the user in question.

It determines this by checking the roles the current user is allowed to modify to the roles the other user has. If it's not allowed to modify a role that user has then it will return false.

$user->can_modify_user('colin');

AUTHOR

Colin Newell <colin@opusvl.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by OpusVL.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.