[Moin-user] Can I block people from creating accounts if they don't verify their address?

John Hurst ajhurst at me.com
Thu Dec 8 00:31:53 EST 2011


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--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:

> Every day I get a a few people who create an account and create a spam page. It 
> is getting boring. Only people who are logged in are allowed to create or modify 
> a page.
> 
> 1. Can I block people from creating an account if their address is from the 
> .info TLD?
> 
> 2. Can I send email to the person who tries to create an account that they have 
> to respond to? Failure to respond would block final creation of the account.
> 
> TIA
> 
> -- 
> Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
> happened but none stranger than this. Does your driver's license say Organ ..0
> Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
> individuals! What if this weren't a hypothetical question?
> steveo at syslang.net
> 
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of 
> discussion for anyone considering optimizing the pricing and packaging model 
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user





More information about the Moin-user mailing list