1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

[register] redesigned it

This commit is contained in:
llj
2018-06-14 16:51:13 +08:00
parent c70b878359
commit 435ced05f5
7 changed files with 78 additions and 61 deletions

View File

@@ -13,6 +13,7 @@ from registration.backends import get_backend
from constance import config
from seahub import settings
from seahub.utils.auth import get_login_bg_image_path
def activate(request, backend,
template_name='registration/activate.html',
@@ -219,4 +220,7 @@ def register(request, backend, success_url=None, form_class=None,
context['strong_pwd_required'] = config.USER_STRONG_PASSWORD_REQUIRED
context['level'] = config.USER_PASSWORD_STRENGTH_LEVEL
login_bg_image_path = get_login_bg_image_path()
context['login_bg_image_path'] = login_bg_image_path
return render(request, template_name, context)