ETLp::Audit::Browser::Model::User - Model Class for interacting with Runtime FileProcess User Records
use ETLp::Audit::Browser::Model::User; my $model = ETLp::Audit::Browser::Model::User->new(); my $processes = $model->get_user_by_username('jbloggs');
Returns an etlp_user record given the username
* username. Required. The name of the user
* A DBIx::Class record
Returns an etlp_user record given the user id
Returns the users one page at a time
* page. optional. The page being requested. Defaults to 1
* A DBIx::Class resultset
Saves user input
A hashref consisting of
* user_id * username * first_name * last_name * password (optional), unencrypted * password2 (optional), unencrypted * email_address (optional) * admin (optional, 1= admin 0 = not admin) * active (optional, 1 = active, 0 = inactive)
Returns a salt that is used in the password encrytion routine
* None
head3 Returns
* Up to eight characters (from Lower and upper case letters, digits period, slash)
Encrypts plaint test text password
* password. String.
* encrypted password
Checks whether the exncrypted plaintext password will match the actual encrypted password
* paintext_password. String. Mandatory. * encrypted_password. String. Mandatory. The encrypted password
* Void
Update a user's password
* password. String. Mandatory. The plaintext password * user_id. Integer. Mandatory. The user updating this record.
Copyright 2010 Redbone Systems Ltd
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
The terms are in the LICENSE file that accompanies this application
To install ETLp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ETLp
CPAN shell
perl -MCPAN -e shell install ETLp
For more information on module installation, please visit the detailed CPAN module installation guide.