password visibility icon not shown for first page

In the initial page (http://<ip>:<port>) the
password field not showing the password visibility
icon.

If we go to login page (http://<ip>:<port>/auth/login)
the password visibility icon is shown properly.

Now both the address are using the same template so
the password visibility icon shown in the initial
page also and the unused template is deleted.

Change-Id: Ia8063c54143c5394c927cf7aea7c15c3e9373dd0
Closes-Bug: #1408220
This commit is contained in:
Masco Kaliyamoorthy 2015-01-07 13:15:46 +05:30
parent fe46feed7e
commit a3f7ac2625
2 changed files with 1 additions and 20 deletions

View File

@ -1,19 +0,0 @@
{% load i18n branding %}
<!DOCTYPE html>
<html lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
{% include "horizon/_custom_meta.html" %}
<title>{% trans "Login" %} - {% site_branding %}</title>
{% include "_stylesheets.html" %}
{% include "horizon/_custom_head_js.html" %}
</head>
<body id="splash">
<div class="container">
<div class="row large-rounded">
{% include 'auth/_login.html' %}
</div>
</div>
</body>
</html>

View File

@ -41,7 +41,7 @@ def splash(request):
response = shortcuts.redirect(horizon.get_user_home(request.user))
else:
form = forms.Login(request)
response = shortcuts.render(request, 'splash.html', {'form': form})
response = shortcuts.render(request, 'auth/login.html', {'form': form})
if 'logout_reason' in request.COOKIES:
response.delete_cookie('logout_reason')
return response