| > | | > |
| > \--- [Vetting Users Discussion 2008-06-03 17:33: | | > \--- [Vetting Users Discussion 2008-06-03 17:33: |
| 12] (http://sct.sphene.net/board/thread/1097/?page | | 12] (http://sct.sphene.net/board/thread/1097/?page |
| =1#post-1099) \--- | | =1#post-1099) \--- |
| | | |
| # Backlog | | # Backlog |
| | | |
| n | * pluggable optional captcha framework for registr | n | *  enhance the core captcha frame |
| | | work to allow for settings_local.py control
|
| | | *  optional captcha for registrat |
| | | ion
|
| * login using user name (aka primary display name) | | * login using user name (aka primary display name) |
| or email address | | or email address |
| * Multiple Display names (for use in various areas | | * Multiple Display names (for use in various areas |
| TBD) | | TBD) |
| * email availability settings (Google like with a | | * email availability settings (Google like with a |
| captch between initial display and full display of | | captch between initial display and full display of |
| email names) | | email names) |
| * Auto assigning groups based of various criteria | | * Auto assigning groups based of various criteria |
| (number of posts, number of submissions to tags, w | | (number of posts, number of submissions to tags, w |
| eighted posting [replying with acknowledge helpful | | eighted posting [replying with acknowledge helpful |
| advice counts as more] and subscription levels) | | advice counts as more] and subscription levels) |
| * Multiple Signatures (for use in various areas TB | | * Multiple Signatures (for use in various areas TB |
| D) | | D) |
| * Graphical Signatures (based on authorization / u | | * Graphical Signatures (based on authorization / u |
| ser roles) | | ser roles) |
| n | | n | * Push the captcha into a pluggable module.
|
| | | |
| n | # Pluggable captcha
| n | # Backlog Item Notes
|
| | |
|
| | | ## Core Captcha Features
|
| | |
|
| | | First order of business was to add a few minor upd |
| | | ates to the built in Captcha framework.
|
| | |
|
| | | Captcha support is integrated in the files:
|
| | |
|
| | | - **`sphene/community/views.py`**
|
| | | + updated the **`captcha_image`** method to a |
| | | llow for optional settings for fg & bg colors and |
| | | border width via the settings `CAPTCHA_BORDER`, `C |
| | | APTCHA_BGCOLOR` and `CAPTCHA_FGCOLOR` the default |
| | | settings for these are:
|
| | |
|
| | | **`CAPTCHA_BGCOLOR = (39, 36, 81) # bac |
| | | kground color RGB tuple for captcha images`**
|
| | |
|
| | | **`CAPTCHA_FGCOLOR = (153, 204, 0) # for |
| | | eground color RGB tuple for captcha images`**
|
| | |
|
| | | **`CAPTCHA_BORDER = 2 # border width in |
| | | pixels around captcha text`**
|
| | |
|
| | | + changed the **`captcha_image`** method imag |
| | | e generation to compute the size of the image base |
| | | d off of the text written
|
| | | + added an **`autocrop`** method to trim back |
| | | the image to the exact size (true type fonts tend |
| | | to lie about height and width so image size calcu |
| | | lations are not really reliable to get the right s |
| | | ized box)
|
| | | - **`sphene/community/sphutils.py`**
|
| | | + Fixed the captcha usage for displaying emai |
| | | l addresses to flip to True by default if captcha' |
| | | s are active. Since this in internal it is updatin |
| | | g the default behavoir leaving the option for dire |
| | | ct setting of the behavoir to override it.
|
| | |
|
| | | ##  Optional Captcha for registrat |
| | | ion
|
| | |
|
| | | - **`sphene/community/sphsettings.py`**
|
| | | + Added captcha support for new user registra |
| | | tion. It is off by default and can be turned on by |
| | | adding captcha libraries and then setting the sph |
| | | setting 'community_register_require_captcha' to Tr |
| | | ue. Example on how do this would be to put this li |
| | | ne into the **`settings_local.py`** file:
|
| | |
|
| | | **`SPH_SETTINGS['community_register_requ |
| | | ire_captcha'] = True`**
|
| | |
|
| | |
|
| | | |
| Needs to be optional. If defined it is used otherw | | Needs to be optional. If defined it is used otherw |
| ise it is bypassed. | | ise it is bypassed. |
| | | |
| Basic Captcha support is now integrated via update | | Basic Captcha support is now integrated via update |
| s to SCT Tools see [SCT Tools Captcha http://sct.s | | s to SCT Tools see [SCT Tools Captcha http://sct.s |
| phene.net/wiki/show/Captcha/](http://sct.sphene.ne | | phene.net/wiki/show/Captcha/](http://sct.sphene.ne |
| t/wiki/show/Captcha/) for details. | | t/wiki/show/Captcha/) for details. |
| | | |
| n | TODO: Push the captcha into a pluggable module.
| n | |
| | | |
| n | # User Vetting | n | ## User Vetting |
| | | |
| The user system should support optional user vetti | | The user system should support optional user vetti |
| ng. User vetting is the ability to cause a new mem | | ng. User vetting is the ability to cause a new mem |
| bership request to require approval by another use | | bership request to require approval by another use |
| r with appropriate authority. | | r with appropriate authority. |
| | | |
| t | ## Vetting Work Flow | t | ### Vetting Work Flow |
| | | |
| 1. New user submits registration request | | 1. New user submits registration request |
| - an email validation check message is sent to | | - an email validation check message is sent to |
| user's email address | | user's email address |
| - If vetting is on a vetting new user email is | | - If vetting is on a vetting new user email is |
| sent the assigned administrator or GROUP | | sent the assigned administrator or GROUP |
| | | |