[Moin-User] Disable New User Creation

Mohacsi Janos mohacsi at niif.hu
Wed Apr 5 00:25:01 EDT 2006


Hello,
  	I have a small patch to completly disable registration. I hope 
this will help you. Here it is.


diff -Nu userform.py.save userform.py
--- userform.py.save    Thu Feb 16 09:39:46 2006
+++ userform.py Wed Mar 29 10:29:49 2006
@@ -87,6 +87,8 @@
               form.has_key('create_and_mail')):
               if self.request.request_method != 'POST':
                   return _("Use UserPreferences to change your settings or 
create an account.")
+            # disable UserProfile creation
+            return _("Use UserPreferences to change your settings but you 
cannot create an account.")
               # Create user profile
               if form.has_key('create'):
                   theuser = self.request.get_user()
Regards,

Janos Mohacsi
Network Engineer, Research Associate
NIIF/HUNGARNET, HUNGARY
Key 00F9AF98: 8645 1312 D249 471B DBAE  21A2 9F52 0D1F 00F9 AF98


On Sun, 2 Apr 2006, Mehdi Hassanpour wrote:

> Hi All,
>
> Is there any way I can disable new user creation ?
> I just want Admin create new users...
>
>
> Thanks
> --
> ********************************************************
> Yours Sincerely, Mehdi Hassanpour
> ----------------------------------------------------------------------
> /* Of one Essence is the human race,
> Thusly has Creation put the Base;
> One Limb impacted is sufficient,
> For all Others to feel the Mace.
>                           ~Saadi (persian poet) -1258 */
> ----------------------------------------------------------------------
> http://ImPersian.com     |     http://Hezardastan.org
> ********************************************************
>




More information about the Moin-user mailing list