Open Journal Systems  2.4.3
 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 ()
 
 setDispatcher (&$dispatcher)
 
 setId ($id)
 
 validate ($requiredContexts=null, $request=null)
 

Detailed Description

Handle login/logout requests.

Definition at line 19 of file PKPLoginHandler.inc.php.

Member Function Documentation

PKPLoginHandler::_redirectAfterLogin (   $request)

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

Parameters
$requestPKPRequest

Definition at line 102 of file PKPLoginHandler.inc.php.

Referenced by signIn().

PKPLoginHandler::_setMailFrom (   $request,
$mail,
$site 
)

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

Parameters
$requestPKPRequest
MailTemplate$mail
$siteSite

Definition at line 332 of file PKPLoginHandler.inc.php.

Referenced by requestResetPassword(), and resetPassword().

PKPLoginHandler::changePassword (   $args,
$request 
)

Display form to change user's password.

Parameters
$argsarray first argument may contain user's username

Definition at line 288 of file PKPLoginHandler.inc.php.

References PKPHandler\validate().

PKPLoginHandler::implicitAuthLogin (   $args,
$request 
)

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 PKPLoginHandler.inc.php.

References Config\getVar().

PKPLoginHandler::implicitAuthReturn (   $args,
$request 
)

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

Definition at line 84 of file PKPLoginHandler.inc.php.

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

PKPLoginHandler::index (   $args,
$request 
)

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

Definition at line 25 of file PKPLoginHandler.inc.php.

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

PKPLoginHandler::lostPassword (   $args,
$request 
)

Display form to reset a user's password.

Definition at line 176 of file PKPLoginHandler.inc.php.

References PKPHandler\validate().

PKPLoginHandler::requestResetPassword (   $args,
$request 
)

Send a request to reset a user's password

Definition at line 186 of file PKPLoginHandler.inc.php.

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

PKPLoginHandler::resetPassword (   $args,
$request 
)

Reset a user's password

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

Definition at line 224 of file PKPLoginHandler.inc.php.

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

PKPLoginHandler::savePassword (   $args,
$request 
)

Save user's new password.

Definition at line 305 of file PKPLoginHandler.inc.php.

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

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

Log a user out.

Definition at line 158 of file PKPLoginHandler.inc.php.

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


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