english/administrator/components/com_login/models/login.php
/**
	 * Method to auto-populate the model state.
	 *
	 * Note. Calling getState in this method will result in recursion.
	 *
	 * @since	1.6
	 */
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.


Method to auto - populate the model state . Note . Calling getState in this method will result in recursion .
protected function populateState()
	{
		$credentials = array(
			'username' => JRequest::getVar('username', '', 'method', 'username'),
			'password' => JRequest::getVar('passwd', '', 'post', 'string', JREQUEST_ALLOWRAW)
		);
		$this->setState('credentials', $credentials);
		if ($return = JRequest::getVar('return', '', 'method', 'base64')) {
			$return = base64_decode($return);
			if (!JURI::isInternal($return)) {
				$return = '';
			}
		}
		if (empty($return)) {
			$return = 'index.php';
		}
		$this->setState('return', $return);
	}
protected function populateState ( ) { $ credentials = array ( 'username' => JRequest :: getVar ( 'username' , '' , 'method' , 'username' ) , 'password' => JRequest :: getVar ( 'passwd' , '' , 'post' , 'string' , JREQUEST_ALLOWRAW ) ) ; $ this -> setState ( 'credentials' , $ credentials ) ; if ( $ return = JRequest :: getVar ( 'return' , '' , 'method' , 'base64' ) ) { $ return = base64_decode ( $ return ) ; if ( ! JURI :: isInternal ( $ return ) ) { $ return = '' ; } } if ( empty ( $ return ) ) { $ return = 'index.php' ; } $ this -> setState ( 'return' , $ return ) ; }
Method to auto-populate the model state.
Method to auto - populate the model state .
// check for return URL from the request first // Set the return URL if empty.