8 Dec 2011 06:31
Re: Can I block people from creating accounts if they don't verify their address?
John Hurst <ajhurst <at> me.com>
2011-12-08 05:31:53 GMT
2011-12-08 05:31:53 GMT
I had this problem. I explored the web page below, but couldn't get it to work. http://moinmo.in/FeatureRequests/DisableUserCreation Aftyer much trial and error, I eventually nurgled the _create_user routine in <your directory for python packages>/MoinMoin/action/newaccount.py to add a couple of lines def _create_user(request): _ = request.getText form = request.form if not request.user.isSuperUser(): return _('You are not allowed to use this action.') ... which does the trick by allowing only superusers to create new accounts. However, it doesn't actually print the error message, but internal errors, for reasons I don't understand. Oh well, it was a simple fix. Perhaps someone else might explain what I'm doing wrong? cheers, --John Hurst --5 Fran Court, Glen Waverley, VIC 3150 ~ ~~~&#: -- ajhurst <at> mac.com +61 3 9803 9346 _..___ ---____ <at> ___H__ --(mob 0407 569 292) |_____[_|_________[__]_ -- http://homepage.mac.com/ajhurst/ oo oo oo O--(Continue reading)O--O o=o -- -- -- If Christmas were all year round, what would you do? Live to Party, or be a Party to Life? On 20111208, at 15:37, Steven W. Orr wrote:
RSS Feed