mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-27 11:01:14 +00:00
Update registration process
This commit is contained in:
parent
c51eadc4f5
commit
a170cfc27f
10
HACKING
10
HACKING
@ -61,13 +61,15 @@ Process 1:
|
||||
|
||||
To Enable this process, just set
|
||||
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
|
||||
EMAIL_FILE_PATH = '/tmp/app-messages'
|
||||
|
||||
REGISTRATION_SEND_MAIL = False
|
||||
|
||||
Process 2:
|
||||
1. User register and active account and bind ccnet ID
|
||||
1. User register and receive activation email
|
||||
2. User active account and bind ccnet ID
|
||||
|
||||
Process 3:
|
||||
1. Admin add user
|
||||
2. User login and bind ccnet ID
|
||||
|
||||
About Authentication
|
||||
====================
|
||||
|
@ -1,5 +1,6 @@
|
||||
from django.conf.urls.defaults import *
|
||||
from django.views.generic.simple import direct_to_template
|
||||
from django.conf import settings
|
||||
|
||||
from registration.views import activate
|
||||
from registration.views import register
|
||||
@ -27,7 +28,8 @@ urlpatterns = patterns('',
|
||||
name='registration_register'),
|
||||
url(r'^register/complete/$',
|
||||
direct_to_template,
|
||||
{ 'template': 'registration/registration_complete.html' },
|
||||
{ 'template': 'registration/registration_complete.html',
|
||||
'extra_context': { 'send_mail': settings.REGISTRATION_SEND_MAIL } },
|
||||
name='registration_complete'),
|
||||
url(r'^register/closed/$',
|
||||
direct_to_template,
|
||||
|
@ -1,6 +1,10 @@
|
||||
{% extends "myhome_base.html" %}
|
||||
{% block title %}感谢注册{% endblock %}
|
||||
{% block main_panel %}
|
||||
{% if send_mail %}
|
||||
<p>感谢注册,激活邮件已发往您的邮箱,请查收。如果您在收件箱里没找到,请检查下是否被当成垃圾邮件了。</p>
|
||||
{% else %}
|
||||
<p>感谢注册,请等待管理员激活你的帐号。</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user