Natural Order Development

Copyright © 2008 by Leeland Artra
You are not logged in.
Login
Register



A Django site.

Site:User System

UserSystem

Back to Snip <-- Previous Change | Next Change -->

Diff Summary
Title Site:User System Site:User System
Date 2008-06-17 00:46:45 2008-06-20 20:08:48
Editor Leeland Leeland
Tags

2008-06-17 00:46:45 by Leeland
2008-06-20 20:08:48 by Leeland
6>6>
7> \--- [Vetting Users Discussion 2008-06-03 17:33:7> \--- [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) \---
88
9# Backlog9# Backlog
1010
n11* pluggable optional captcha framework for registrn11* ![<font color="green">DONE</font>](/media/img/ic
>ation >on_check_green.gif) enhance the core captcha frame
 >work to allow for settings_local.py control
12* ![<font color="green">DONE</font>](/media/img/ic
 >on_check_green.gif) optional captcha for registrat
 >ion
12* login using user name (aka primary display name)13* login using user name (aka primary display name)
> or email address> or email address
13* Multiple Display names (for use in various areas14* Multiple Display names (for use in various areas
> TBD)> TBD)
14* email availability settings (Google like with a 15* 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)
15* Auto assigning groups based of various criteria 16* 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)
16* Multiple Signatures (for use in various areas TB17* Multiple Signatures (for use in various areas TB
>D)>D)
17* Graphical Signatures (based on authorization / u18* Graphical Signatures (based on authorization / u
>ser roles)>ser roles)
nn19* Push the captcha into a pluggable module.
1820
n19# Pluggable captcha n21# Backlog Item Notes
22
23## Core Captcha Features
24
25First order of business was to add a few minor upd
 >ates to the built in Captcha framework.
26
27Captcha support is integrated in the files:
28
29- **`sphene/community/views.py`**
30     + 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:
31
32          **`CAPTCHA_BGCOLOR = (39, 36, 81)  # bac
 >kground color RGB tuple for captcha images`**
33
34          **`CAPTCHA_FGCOLOR = (153, 204, 0) # for
 >eground color RGB tuple for captcha images`**
35
36          **`CAPTCHA_BORDER = 2 # border width in 
 >pixels around captcha text`**
37
38     + changed the **`captcha_image`** method imag
 >e generation to compute the size of the image base
 >d off of the text written
39     + 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)
40- **`sphene/community/sphutils.py`**
41     + 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.
42
43## ![<font color="blue">DONE</font>](/media/img/ic
 >on_check_green.gif) Optional Captcha for registrat
 >ion
44
45- **`sphene/community/sphsettings.py`**
46     + 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:
47
48          **`SPH_SETTINGS['community_register_requ
 >ire_captcha'] = True`**
49
50
2051
21Needs to be optional. If defined it is used otherw52Needs to be optional. If defined it is used otherw
>ise it is bypassed.>ise it is bypassed.
2253
23Basic Captcha support is now integrated via update54Basic 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.
2455
n25TODO: Push the captcha into a pluggable module. n
2656
n27# User Vettingn57## User Vetting
2858
29The user system should support optional user vetti59The 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.
3060
t31## Vetting Work Flowt61### Vetting Work Flow
3262
331. New user submits registration request631. New user submits registration request
34    - an email validation check message is sent to64    - an email validation check message is sent to
> user's email address> user's email address
35    - If vetting is on a vetting new user email is65    - If vetting is on a vetting new user email is
> sent the assigned administrator or GROUP> sent the assigned administrator or GROUP
3666


Powered by Sphene Community Tools