## Class mr_server_validate_login

Description

MR Server Validate Login

- author: Mark Nielsen

Located in /server/validate/login.php (line 52)

    Zend_Validate_Abstract
       |
       --mr_server_validate_login

Class Constant Summary
LOGIN_COOKIE = 'loginCookie'
LOGIN_FAIL = 'loginFail'
LOGIN_MISSING = 'loginMissing'
Variable Summary
array $_messageTemplates
string $_parampassword
string $_paramusername
Method Summary
mr_server_validate_login __construct ([string $paramusername = 'wsusername'], [string $parampassword = 'wspassword'])
boolean isValid (Zend_Controller_Request_Http $request)
Variables
array $_messageTemplates = array(
self::LOGIN_FAIL => "Wrong username or password",
self::LOGIN_MISSING => "Wrong username or password",
self::LOGIN_COOKIE => 'Moodle cookies should not be enabled, this must be fixed by a programmer',
) (line 65)

Error message templates

- access: protected

string $_parampassword (line 83)

Password parameter name

- access: protected

string $_paramusername (line 76)

Username parameter name

- access: protected

Methods
Constructor __construct (line 91)

Constructor

- access: public

mr_server_validate_login __construct ([string $paramusername = 'wsusername'], [string $parampassword = 'wspassword'])

- string $paramusername: Set parameter name for username
- string $parampassword: Set parameter name for password

isValid (line 102)

See if the request contains a proper username/password for login

- access: public

boolean isValid (Zend_Controller_Request_Http $request)

- Zend_Controller_Request_Http $request: The request to check

Class Constants
LOGIN_COOKIE = 'loginCookie' (line 58)
LOGIN_FAIL = 'loginFail' (line 56)

Error constants

LOGIN_MISSING = 'loginMissing' (line 57)

Documentation generated on Thu, 28 Jun 2012 16:33:49 -0700 by phpDocumentor 1.4.3