The Login Module
This module can be used by other modules as follows:-
The Login module requires the following entries in the configuration file.
[login] mode = database or file : Authenticate against a 'database' or 'file' key_field = key_field_name : Name of the field that contains the primary key user_field = user_field_name : Name of the field that contains the user name pass_field = password_field_name : Name of the field that contains the password (encrypted using PASSWORD())
table = login_table_name : Name of the table in the database that contains login information
file = path/to/file : Location of the password file type = ini : Type of password file
The defaults are as below: [login] mode = database key_field = user_id user_field = email pass_field = password
table = user
file = "ini/password.ini" type = ini
This module requires the Config module when file based authentication is used.
Located in /modules/Login.php (line 41)
Module | --Login
Inherited from Module
Module::$application
Module::$controller
Module::$database
Module::$error
Module::$error_strings
Module::$exceptions
Module::$output
Module::$queries
Module::$sql
Module::$template_file
Module::$use_render
Module::$use_template_library
Module::$use_view
Constructor for Login module
Register exceptions in the constructor
Check if a user is logged in
Login the user
Use the following parameters if login processing is invoked from another module action.
Display login form
Log out the current user. This is done by deleting the session
The default or the specified module:action is executed after logging out.
Inherited From Module
Module::disable_render()
Module::disable_template_library()
Module::disable_view()
Module::enable_render()
Module::enable_template_library()
Module::enable_view()
Module::exec_module_action()
Module::get_error_strings()
Module::get_exceptions()
Module::get_queries()
Module::get_templating_library_paths()
Module::initialize()
Module::PHPTAL_render()
Module::register_error()
Module::register_exception()
Module::register_query()
Module::render()
Module::set_references()
Module::set_template_file()
Module::Smarty_render()
Documentation generated on Sat, 23 Jun 2007 21:28:20 -0500 by phpDocumentor 1.3.2