OpusVL::AppKit::RolesFor::Schema::AppKitAuthDB::Result::User
version 6
This need to be called as the User result class is being setup to finish the table setup.
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.
Disables a users account.
Enables a users account.
Finds all a users parameters, matches them with the value and returns a nice Hash ref.
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.
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.
Returns the list of roles this user is allowed to modify.
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');
Colin Newell <colin@opusvl.com>
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.
To install OpusVL::AppKit::Schema::AppKitAuthDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpusVL::AppKit::Schema::AppKitAuthDB
CPAN shell
perl -MCPAN -e shell install OpusVL::AppKit::Schema::AppKitAuthDB
For more information on module installation, please visit the detailed CPAN module installation guide.