Yukki::Model::User - lookup users
version 0.991_006
my $users = $app->model('User'); my $user = $users->find('bob'); my $login_name = $user->login_name; my $password = $user->password; my $name = $user->name; my $email = $user->email; my @groups = $user->groups->@*;
Read access to the current list of authorized users.
$users->set_password($user, $cleartext);
Given a password in cleartext, this will hash the password using the application's hasher. The second argument containing the cleartext password is optional. When omitted, the value returned by the password accessor of the $user object will be used instead.
password
$user
$users->save($user, create_only => 1);
Writes a Yukki::User object to the users database. If the create_only flag is set, the method will fail with an exception when the user already exists.
create_only
$users->delete($user);
Given a Yukki::User, this method deletes the user file for that object.
my $user = $users->find(login_name => $login_name);
Returns a hash containing the information related to a specific user named by login name.
my @names = $users->list;
Returns a list of login names for all users configured.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2017 by Qubling Software LLC.
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 Yukki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yukki
CPAN shell
perl -MCPAN -e shell install Yukki
For more information on module installation, please visit the detailed CPAN module installation guide.