Krang::CGI::User - Abstract of web application....
use Krang::ClassLoader 'CGI::User';
my $app = pkg('CGI::User')->new();
$app->run();
Overview of functionality and purpose of web application module Krang::CGI::User...
It retrieves the user from the session object and overwrites the fields of this object with the query parameters passed to this run mode, with the exception of the 'user_id'.
The 'new_password' field and 'confirm_password' fields are compared for equality is they are equal the value in 'new_password' will be MD5'd and stored in the password field, otherwise the end-user will be returned to the 'edit' screen.
The password will also be checked by the PasswordHandler and if validation
fails, the user will be returned to the 'add' screen.
This mode function just like the 'save_add' run mode except for redirecting the user to 'edit' run mode.
It expects a 'user_id' query param.
This mode expects the 'krang_pager_rows_checked' param which should contain an array of 'user_id's signifying the user objects to be deleted.
This run mode expects a 'user_id' query param and it will croak if it's missing or invalid.
N.B - propagate query params supercede object field values in populating form fields, so errant values are preserved for correction.
It retrieves the user from the session object and overwrites the fields of this object with the query parameters passed to this run mode, with the exception of the 'user_id'.
The 'new_password' field and 'confirm_password' fields are compared for equality is they are equal the value in 'new_password' will be MD5'd and stored in the password field, otherwise the end-user will be returned to the 'edit' screen.
This mode function just like the 'save_edit' run mode except for redirecting the user to 'edit' run mode.
This run mode accepts the optional parameter ``search_filter'' which is expected to contain a text string which will in turn be used to query users.
Instead of failing to delete a user if he has assets checked out, we should check all of his assets in and then perform the deletion.