Apache-iNcom
view release on metacpan or search on metacpan
lib/DBIx/UserDB.pm view on Meta::CPAN
Here are the methods for managing users in the database.
=head2 user_create ( \%user )
This method creates a user with the information specified in the hash
reference in the database. In the user's hash, at least the fields
I<username> and I<password> should be set.
The methods return true on success and false if there is already a
username with that name in the database. Exception are thrown on
database errors. Additionally, on return, the method will add the UID
of the newly created user.
=cut
sub user_create {
my ( $self, $user ) = @_;
# Check for a user with the same username
my $old_user = $self->{DB}->record_search( $self->{user_profile},
( run in 0.239 second using v1.01-cache-2.11-cpan-496ff517765 )