[Moin-user] New accounts

Rudolf Reuter reuterru at arcor.de
Tue Mar 13 01:50:34 EDT 2012


Hello,

for me the best solution was:
from http://www.moinmo.in/FeatureRequests/DisableUserCreation


    *Solution for 1.9 to only allow superusers to create new accounts*

In short:
In order to avoid SPAM creating new accounts, patch 
MoinMoin/action/newaccount.py
Line 172:
     page = Page(request, pagename)
     _ = request.getText
     # 2011-08-20 RR
     if not request.user.isSuperUser():
         request.theme.add_msg(_('You are not allowed to use this 
action.'), "error")
         return page.send_page()
     form = request.form

Best regards,
Rudolf


Am 12.03.12 11:45, schrieb Hugo Gomes:
> Hi all,
> 	
> 	I'm having problems with bots creating new accounts, Is there any
> solution to implement only in account creation to solve this problems?
> Like a captcha system to new accounts?
>
> 	Best regards,
> 	Hugo Gomes
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20120313/cd7c332a/attachment.html>


More information about the Moin-user mailing list