Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imwhatiam committed Jan 2, 2025
1 parent 9fc8027 commit 53a9878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions seahub/auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ def login(request, template_name='registration/login.html',
'enable_multi_adfs': getattr(settings, 'ENABLE_MULTI_ADFS', False),
'login_bg_image_path': login_bg_image_path,
'enable_change_password': settings.ENABLE_CHANGE_PASSWORD,
'enable_phone_login': settings.ENABLE_PHONE_LOGIN,
})


Expand Down
6 changes: 5 additions & 1 deletion seahub/templates/registration/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
<div class="login-panel" id="log-in-panel">
<h1 class="login-panel-hd">{% trans "Log In" %}</h1>
<form action="" method="post" id="login-form">{% csrf_token %}
<input type="text" name="login" placeholder="{% trans "Telephone, email or Username" %}" aria-label="{% trans "Email or Username" %}" title="{% trans "Email or Username" %}" value="" class="input mb-3" />
{% if enable_phone_login %}
<input type="text" name="login" placeholder="{% trans "Phone number, email or username" %}" aria-label="{% trans "Phone number, email or username" %}" title="{% trans "Phone number, email or username" %}" value="" class="input mb-3" />
{% else %}
<input type="text" name="login" placeholder="{% trans "Email or Username" %}" aria-label="{% trans "Email or Username" %}" title="{% trans "Email or Username" %}" value="" class="input mb-3" />
{% endif %}
<div class="position-relative">
<input id="password-input" type="password" name="password" placeholder="{% trans "Password" %}" aria-label="{% trans "Password" %}" title="{% trans "Password" %}" value="" class="input" autocomplete="off" />
<i id="toggle-show-password" class="sf3-font sf3-font-eye-slash"></i>
Expand Down

0 comments on commit 53a9878

Please sign in to comment.