Remove unnecessary css and js from login page

This commit is contained in:
JonnyWong16 2016-04-20 21:33:32 -07:00
parent 51a12099e4
commit 54a7367fb6
2 changed files with 3 additions and 10 deletions

View file

@ -8,10 +8,7 @@
<meta name="description" content="">
<meta name="author" content="">
<link href="${http_root}css/bootstrap3/bootstrap.css" rel="stylesheet">
<link href="${http_root}css/bootstrap-wizard.css" rel="stylesheet">
<link href="${http_root}css/plexpy.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
<link href="${http_root}css/font-awesome.min.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="${http_root}images/favicon.ico"/>
<link rel="shortcut icon" href="${http_root}images/favicon.ico">
</head>
@ -34,7 +31,7 @@
<label for="username" class="control-label">
Username
</label>
<input type="text" id="username" name="username" class="form-control" autocorrect="off" autocapitalize="off" value="${username}">
<input type="text" id="username" name="username" class="form-control" autocorrect="off" autocapitalize="off" value="${username}" autofocus>
</div>
<div class="password-group form-group">
<label for="password" class="control-label">
@ -58,9 +55,5 @@
</div>
</div>
<script src="${http_root}js/jquery-2.1.4.min.js"></script>
<script src="${http_root}js/bootstrap3/bootstrap.min.js"></script>
<script src="${http_root}js/bootstrap-wizard.min.js"></script>
</body>
</html>

View file

@ -128,7 +128,7 @@ class AuthController(object):
username = escape(username, True)
return serve_template(templatename="login.html", title="Welcome", username=username, msg=msg)
return serve_template(templatename="login.html", title="Login", username=username, msg=msg)
@cherrypy.expose
def login(self, username=None, password=None, remember_me=0):
@ -144,7 +144,7 @@ class AuthController(object):
cherrypy.session.regenerate()
cherrypy.session[SESSION_KEY] = cherrypy.request.login = username
self.on_login(username)
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT or "/")
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT)
@cherrypy.expose
def logout(self):