Jump to content


Photo

2013 error when login methods stacked


I don't know ALL the details to reproduce this, but I know you must at least have one other login module enabled besides internal (in this case we used Converge) and it must be setup to load BEFORE the converters login module, I believe.

Because of the way the stacking sets the return codes, when this is the case no return code gets set by the converter login module, however a response *was* found, so it returns an empty return code to the login handler, and this check in lostpass.php fails

    	if ( $this->han_login->return_code != 'METHOD_NOT_DEFINED' AND $this->han_login->return_code != 'SUCCESS' )
		    	{
					$this->registry->output->showError( $this->lang->words['lostpass_external_fail'], 2013 );
		    	}

To fix this error, all that needs to be done is to add a template changePass() method in the converter auth.php file as such:

/**
	 * Change a password
	 *
	 * @access	public
	 * @param	string		Email Address
	 * @param	string		New Password
	 * @param	string		Plain Text Password
	 * @param	string		Member Array
	 * @return	boolean		Request was successful
	 */
	public function changePass( $email, $new_pass, $plain_pass, $member )
	{
		$this->return_code = 'METHOD_NOT_DEFINED';
		return true;
	}

I have already done this in the IPB repository, however I'm not sure if converters are also managed in a separate repository, hence this bug report. :)

See ticket 718827 for other details/test case.

Status: Not a Bug
Version:
Fixed In:


1 Comments

Updating status to: Not a Bug