CGI-Builder-Auth
view release on metacpan or search on metacpan
lib/CGI/Builder/Auth/UserAdmin.pm view on Meta::CPAN
316317318319320321322323324325326327328329330331332333334335336337338339340341Fails
if
$username
exists
in the database
if
(
$user
->add(
'dougm'
,
'secret'
)) {
"You have the power!\n"
;
}
You may need to pass additional fields, such as the user's real name.
This depends on your server of course.
$user
->add(
'JoeUser'
,
'try2guess'
,
''
,
'Joseph A. User'
);
You can also pass a set of field name/value pairs in
the form of a hash
ref
. Example
$user
->add(
'JoeUser'
,
'try2guess'
,
''
,
{
'Name'
=>
'Joseph A. User'
,
'Credit_limit'
=>2000});
=item delete($username)
Delete a user
if($user->delete('dougm')) {
print "He's gone\n";
}
( run in 0.347 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )