summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Davies2014-07-18 16:48:38 (GMT)
committer Mark Davies2014-07-18 16:48:38 (GMT)
commit585299b3762ecd7454399eee584c6eca62da674a (patch)
tree0fc21ed5dd44ed4f96a607e41aca137b0475a11b
parentd7989d8cb643c66cb78198ae0c02ebe720f76339 (diff)
Issue #1843066 by BrockBoland: Trimming email input of any stray space characters.HEAD7.x-1.x
-rwxr-xr-xlogintoboggan.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/logintoboggan.module b/logintoboggan.module
index 342a4db..494cd46 100755
--- a/logintoboggan.module
+++ b/logintoboggan.module
@@ -567,7 +567,7 @@ function logintoboggan_user_register_validate($form, &$form_state) {
}
//Check to see whether our e-mail address matches the confirm address if enabled.
if (variable_get('logintoboggan_confirm_email_at_registration', 0) && isset($form_state['values']['conf_mail'])) {
- if ($form_state['values']['mail'] != $form_state['values']['conf_mail']) {
+ if (trim($form_state['values']['mail']) != trim($form_state['values']['conf_mail'])) {
form_set_error('conf_mail', t('Your e-mail address and confirmed e-mail address must match.'));
}
}