Egg::Model::Auth::Base::APIA base class for API module of Egg::Model::Auth. | |
Download |
Egg::Model::Auth::Base::API Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Masatoshi Mizuno
- Publisher web site:
- http://search.cpan.org/~lushe/
Egg::Model::Auth::Base::API Tags
Egg::Model::Auth::Base::API Description
A base class for API module of Egg::Model::Auth. Egg::Model::Auth::Base::API is a base Perl class for API module of Egg::Model::Auth.METHODSnewConstructor. my $auth= $e->model('auth_label_name'); my $api = $auth->api('File');valid_id ()The format of INPUT_ID is checked.The format can be defined by setting the regular expression to 'user_id_regexp' of the configuration for each API.Default is '{4,16}'.valid_pasword ()The format of INPUT_PASSWORD is checked.The format can be defined by setting the regular expression to 'password_regexp' of the configuration for each API.Default is '{4,16}'.password_check (, )If REGIST_PASSWORD is corresponding to INPUT_PASSWORD, effective is returned. if ($api->password_check($reg_psw, $in_psw)) { ......... } else { ......... }It is not possible to correspond by this method when encrypted for the registered password. Please set up the component of the Crypt system to API class. package MyApp::Model::Auth::MyAuth; ........... .... __PACKAGE__->setup_api( File=> qw/ Crypt::SHA1 / ); Requirements: · Perl
Egg::Model::Auth::Base::API Related Software