Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$fieldType when password or email does not save on add record submission #13

Open
apmuthu opened this issue Jan 27, 2019 · 1 comment
Open

Comments

@apmuthu
Copy link
Contributor

apmuthu commented Jan 27, 2019

If a DB field has the case insensitive string password or email, it is validated so with no means of overriding it unless possibly the method modifyFieldWithClass( String fieldName, String cssClassName ) where a custom class is used.

This sometimes undesirable Artificial Intelligence is available in the lines 2049-2057 in ajaxCRUD.class.php file as:

//change the type of textbox field if a password (HTML 5 compatible)
if (stristr($field, "password")){
	$fieldType = "password";
}
 //change the type of textbox field if a password (HTML 5 compatible)
if (stristr($field, "email")){
	$fieldType = "email";
}
@apmuthu
Copy link
Contributor Author

apmuthu commented Jan 27, 2019

Such AI will result in the said fields not being saved in the ADD Record form POST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant