1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

Added captcha to thirdpart

This commit is contained in:
zhengxie
2013-11-09 10:42:06 +08:00
parent e6867f56f2
commit a611d11088
30 changed files with 1402 additions and 0 deletions

11
thirdpart/captcha/urls.py Normal file
View File

@@ -0,0 +1,11 @@
try:
from django.conf.urls import patterns, url
except ImportError:
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('captcha.views',
url(r'image/(?P<key>\w+)/$', 'captcha_image', name='captcha-image', kwargs={'scale': 1}),
url(r'image/(?P<key>\w+)@2/$', 'captcha_image', name='captcha-image-2x', kwargs={'scale': 2}),
url(r'audio/(?P<key>\w+)/$', 'captcha_audio', name='captcha-audio'),
url(r'refresh/$', 'captcha_refresh', name='captcha-refresh'),
)