1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-15 07:52:14 +00:00

Merge pull request #4965 from haiwen/change-password

hide "Forgot password?" when not ENABLE_CHANGE_PASSWORD
This commit is contained in:
Daniel Pan 2021-08-14 08:47:52 +08:00 committed by GitHub
commit b8f36e6517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,7 @@ def login(request, template_name='registration/login.html',
'signup_url': signup_url,
'enable_sso': enable_sso,
'login_bg_image_path': login_bg_image_path,
'enable_change_password': settings.ENABLE_CHANGE_PASSWORD,
})
def login_simple_check(request):

View File

@ -65,7 +65,9 @@ html, body, #wrapper { height:100%; }
<input type="checkbox" name="remember_me" class="vam remember-input" />
<span class="vam">{% blocktrans %}Remember me for {{remember_days}} days {% endblocktrans %}</span>
</label>
{% if enable_change_password %}
<a href="{{ SITE_ROOT }}accounts/password/reset/" class="normal forgot-passwd">{% trans "Forgot password?" %}</a>
{% endif %}
<button type="submit" class="submit btn btn-primary btn-block">{% trans "Log In" %}</button>
</form>