Forums

"Joomla Registration" action - misconception in the reported issues

fasenderos 04 Jul, 2016
Hi,
this is not really a technical problem, but annoying anyway.
The "Joomla Registration" action, report issues in the diagnostics area if the password field and the confirm password field are empty, even if "Random Password" is set to Yes.
Leaving password and confirm password blank when random password is set to yes, I think that should not be reported as an issue.
Thanks for your great components
GreyHead 04 Jul, 2016
Hi fasanderos,

If you like you can fix this by adding the lines shown below to the config_check function around line 423 of the /administrator/components/com_chronoforms5/chronoforms/actions/joomla_registration/joomla_registration.php file
	public static function config_check($data = array()){
		$diags = array();
		$diags[l_('CF_DIAG_NAME_SET')] = !empty($data['name']);
		$diags[l_('CF_DIAG_USERNAME_SET')] = !empty($data['username']);
		$diags[l_('CF_DIAG_EMAIL_SET')] = !empty($data['email']);
		if ( empty($data['random_password']) ) { // <-- add this line
			$diags[l_('CF_DIAG_PASSWORD_SET')] = !empty($data['password']);
			$diags[l_('CF_DIAG_PASSWORD2_SET')] = !empty($data['password2']);
		} // <-- and add this line
		return $diags;
	}
}

Bob
This topic is locked and no more replies can be posted.