#7158: SageNB -- Set up challenge-response, such as a CAPTCHA, for account
registration
---------------------------+------------------------------------------------
   Reporter:  mpatel       |       Owner:  boothby       
       Type:  enhancement  |      Status:  needs_review  
   Priority:  minor        |   Milestone:  sage-4.1.3    
  Component:  notebook     |    Keywords:  sagenb captcha
Work_issues:               |      Author:  Mitesh Patel  
   Reviewer:               |      Merged:                
---------------------------+------------------------------------------------
Changes (by mpatel):

  * status:  new => needs_review


Comment:

 The attached patch, which depends "somewhat" (`twist.py`) on #7110, adds
 two challenge-response methods for new user registration:

  * Simple question and answer, e.g., "How many bits are in one byte?"
  * [http://recaptcha.net/ reCAPTCHA].

 The code for both is in the new file `sagenb.notebook.challenge.py`.  I've
 also

  * Rewritten `twist.RegistrationPage` for linearity.
  * Modified `registration.html` and added the template `recaptcha.html`.
  * Added several options to `sagenb.notebook.server_conf.defaults`:
 {{{
 #!python
 defaults = {
              [...]
              'email': True,
              'challenge': True,
              'challenge_type': 'simple',
 #             'challenge_type': 'recaptcha',
              'recaptcha_public_key': '',
              'recaptcha_private_key': '',
             }
 }}}

 One way to test the "simple" challenge, after applying the patch:

  * Backup `~/.sage`
  * Delete `~/.sage`
  * `sage`
  * `sage: import sagenb.notebook.notebook_object as n;
 n.notebook(accounts=True)`
  * Enter admin's password twice.
  * Browse to `http://localhost:8000`
  * Log out, if necessary, and click on "Sign up for a new Sage Notebook
 account".
  * Try to sign up for new accounts.

 To test the "recaptcha" challenge, [http://recaptcha.net/whyrecaptcha.html
 sign up] for a [http://recaptcha.net/ reCAPTCHA] key, update
 `server_conf.py`, and follow the steps above.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7158#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to