How can I control who can register for my askbot? (i.e. only users with a @example.com email address, or must be admin approved)
EDIT: Found a solution and posted it below. Marked as best/correct answer.
Because we're using Google Apps and therefore have @mycompany.com emails, I just modified the django_authopenid backend to force it to a Google Apps login.
Changed www.google.com/08/id (or something) in util.py to www.google.com/o8/site-xrds?hd=mycompany.com and an openid patch from that adieu posted up.
After that, I just disabled all other logins (only allowing a Google login), and only allowed registered users to view site.
You can limit the logins available through /settings/LOGIN_PROVIDERS/, eg if you only want Facebook logins or Yahoo logins, then enable those and disable all others.
However, I don't believe that Askbot offers any user moderation-before-view, only post moderation, and there is no admin controlled filter that can be applied to user registration email addresses (ie Only Allow: *@MyCompany.com, Block: *@dodgywarez.com)
Both of these things would be a feature request. (Unless someone with more knowledge proves me wrong...!)
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-06-22 18:47:43 -0500
Seen: 173 times
Last updated: Aug 06 '12
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
Related: http://askbot.org/en/question/6796/requiring-paid-accounts/
todofixthis ( 2012-06-23 09:39:28 -0500 )edit