= Details = ## please fill this in Applies to:: 1.6.1 - 1.8 Purpose:: To automatically fill in the "email" section in the user's preferences if the "email" field is ever empty. Description:: The email section won't be overridden if the user has specified a email address. The introduced code path runs only if the email field is empty (eg on account creation or user accidentally set their email address to blank). To activate, apply patch, then set "auth_http_save_email = True" and "auth_http_email_suffix = '@somedomain.com'" in wikiconfig.py. If you set "auth_http_save_email" to True but do not set "auth_http_email_suffix", it will leave the email field blank. For example, if you set "auth_http_email_suffix = '@blah.com'", and the user 'joeschmoe' logs in, his email attribute will be automatically filled in as '[[joeschmoe@blah.com]]'. = Patch = ## we prefer that you send the patch in an attachment to avoid whitespace issues ## you should probably change the name of the attachment here {{attachment:multiconfig.py.authbasic.patch}} //Lib/site-packages/!MoinMoin/auth/http.py {{attachment:http.py.authbasic.patch}} Note:: For Moin versions 1.7 and 1.8, the above patch needs to be pasted in starting at line 85. = Discussion = and it does make sense to disable or remove some form fields in wikiconfig too {{{ user_form_disable = ['name'] user_form_remove = ['password', 'password2', ] }}} Hmm, that code could be useful independent of the auth method (maybe not for ldap, where the email should come from ldap), but for many others. So please check if that code could be move to a separate `email_is_login` auth method to be of general usefulness. If course this stuff is only usefull if wiki email == fn(login_name). Oh, that's a great idea! I'll post up a separate patch once I have it done. And yes, it's only useful if wiki email == fn(login_name), but since it doesn't run if the field is filled in, (presumably) the user can change the email address if it's wrong or they'd like it to be something else. --counterpoke = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: ---- CategoryMoinMoinPatch