Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
PKPLoginHandler Class Reference
Inheritance diagram for PKPLoginHandler:
Handler PKPHandler LoginHandler

Public Member Functions

 _redirectAfterLogin ($request)
 _setMailFrom ($request, &$mail, &$site)
 changePassword ($args, &$request)
 implicitAuthLogin ($args, &$request)
 implicitAuthReturn ($args, &$request)
 index ($args, &$request)
 lostPassword ($args, &$request)
 requestResetPassword ($args, &$request)
 resetPassword ($args, &$request)
 savePassword ($args, &$request)
 signIn ($args, &$request)
 signOut ($args, &$request)
- Public Member Functions inherited from PKPHandler
 addCheck (&$handlerValidator)
 addPolicy (&$authorizationPolicy, $addToTop=false)
 addRoleAssignment ($roleIds, $operations)
 authorize (&$request, &$args, $roleAssignments)
getAuthorizedContext ()
getAuthorizedContextObject ($assocType)
getDispatcher ()
 getId ()
 getLastAuthorizationMessage ()
 getLoginExemptions ()
getRangeInfo ($rangeName, $contextData=null)
 getRoleAssignment ($roleId)
 getRoleAssignments ()
 hashPageContext ($contextData=array())
 index ()
 initialize (&$request, $args=null)
 PKPHandler ()
 requireSSL ()
 setDispatcher (&$dispatcher)
 setId ($id)
 validate ($requiredContexts=null, $request=null)

Detailed Description

Handle login/logout requests.

Definition at line 19 of file

Member Function Documentation

PKPLoginHandler::_redirectAfterLogin (   $request)

After a login has completed, direct the user somewhere. (May be extended by subclasses.)


Definition at line 102 of file

Referenced by signIn().

PKPLoginHandler::_setMailFrom (   $request,

Helper function - set mail From can be overriden by child classes


Definition at line 346 of file

Referenced by requestResetPassword(), and resetPassword().

PKPLoginHandler::changePassword (   $args,

Display form to change user's password.

$argsarray first argument may contain user's username

Definition at line 297 of file

References PKPHandler\validate().

PKPLoginHandler::implicitAuthLogin (   $args,

Handle login when implicitAuth is enabled. If the user came in on a non-ssl url - then redirect back to the ssl url

Definition at line 67 of file

References Config\getVar().

PKPLoginHandler::implicitAuthReturn (   $args,

This is the function that Shibboleth redirects to - after the user has authenticated.

Definition at line 84 of file

References Validation\isLoggedIn(), Validation\login(), and PKPHandler\validate().

PKPLoginHandler::index (   $args,

Display user login form. Redirect to user index page if user is already validated.

Definition at line 25 of file

References SessionManager\getManager(), Config\getVar(), Validation\isLoggedIn(), String\regexp_replace(), and PKPHandler\validate().

PKPLoginHandler::lostPassword (   $args,

Display form to reset a user's password.

Definition at line 176 of file

References PKPHandler\validate().

PKPLoginHandler::requestResetPassword (   $args,

Send a request to reset a user's password

Definition at line 186 of file

References _setMailFrom(), Validation\generatePasswordResetHash(), DAORegistry\getDAO(), and PKPHandler\validate().

PKPLoginHandler::resetPassword (   $args,

Reset a user's password

$argsarray first param contains the username of the user whose password is to be reset

Definition at line 224 of file

References _setMailFrom(), Validation\encryptCredentials(), Validation\generatePassword(), DAORegistry\getDAO(), PKPHandler\validate(), and Validation\verifyPasswordResetHash().

PKPLoginHandler::savePassword (   $args,

Save user's new password.

Definition at line 314 of file

References Validation\login(), and PKPHandler\validate().

PKPLoginHandler::signIn (   $args,
PKPLoginHandler::signOut (   $args,

Log a user out.

Definition at line 158 of file

References Validation\isLoggedIn(), Validation\logout(), and PKPHandler\validate().

The documentation for this class was generated from the following file: