
Mango::User - Module representing an individual user

my $user = $provider->search({ username => 'claco' });
print $user->created;
$user->password('newpassword');
$user->update;

Mango::User represents an individual user.

Returns the date and time in UTC the user was created as a DateTime object.
print $user->created;
Deletes the current user.
$user->destroy;
Returns the id of the current user.
print $user->id;
Saves any changes made to the user back to the provider.
$user->password('Red');
$user->update;
Whenever "update" is called, "updated" is automatically set to the current time in UTC.
Returns the date and time in UTC the user was last updated as a DateTime object.
print $user->updated;
Gets/sets the username of the current user.
print $user->username;
Gets/sets the password of the current user.
print $user->password;

Mango::Object, Mango::Provider::Users

Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/