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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user