Question
I would like to modify registration so that the user only need enter their email name in the registration form and then the registration process appends the "@domain.com" automatically. Editing this form is trivial. I just don't see how to modify the email process to do the "@domain.com" suffix.
Specifically - I would like to know how to take the email string from the email registration table and concatenate this with the suffix "@domain.com" into the Email variable so that everything else still works properly. My TWiki site is for internal collaberation only and runs only within our corporate "firewall".
Additionally - I need to know how to disable the ability to change or edit email addresses to keep this from being altered.
This would increase security by constraining all emails to corporate email which would be good as all most all folks can access this site through VPN. LDAP is not an option.
I have TWiki 4.04 deployed - It is fantastic. I have nearly 100 pages with 60 attachements already in less than a week! Thank you all for such an incredible tool...
Thank you very much!
Environment
--
RobHughes - 31 Jul 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
You could always auto-complete the email address using a fragment of
JavaScript. You could constrain the
ChangeEmailAddress page the same way. To change it in the code, you would need to hack a lot of
lib/TWiki/UI/Register.pm. I really can't recommend it.
--
CrawfordCurrie - 21 Aug 2006