Commit 738c0039 authored by greggles's avatar greggles

Issue #1874454 by greggles: Make the name a value instead of a hidden to keep...

Issue #1874454 by greggles: Make the name a value instead of a hidden to keep it from being in the HTML
parent 259f498d
......@@ -63,7 +63,7 @@ function email_registration_user_insert(&$edit, &$account, $category = NULL) {
* Implements hook_form_FORM_ID_alter().
*/
function email_registration_form_user_register_form_alter(&$form, &$form_state) {
$form['account']['name']['#type'] = 'hidden';
$form['account']['name']['#type'] = 'value';
$form['account']['name']['#value'] = 'email_registration_' . user_password();
$form['account']['mail']['#title'] = t('E-mail');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment