diff --git a/openlp/plugins/remotes/html/login.html b/openlp/plugins/remotes/html/login.html
new file mode 100644
index 000000000..4441958de
--- /dev/null
+++ b/openlp/plugins/remotes/html/login.html
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+ ${title}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/openlp/plugins/remotes/html/openlp.css b/openlp/plugins/remotes/html/openlp.css
index 4bc1bf907..60a8fe625 100644
--- a/openlp/plugins/remotes/html/openlp.css
+++ b/openlp/plugins/remotes/html/openlp.css
@@ -36,3 +36,11 @@
.ui-li .ui-btn-text a.ui-link-inherit{
white-space: normal;
}
+
+.ui-page{
+ padding: 100px 100px 100px 100px;
+ width: 300px;
+}
+.ui-input-text{
+ width: 30px;
+}
\ No newline at end of file
diff --git a/openlp/plugins/remotes/lib/httpauth.py b/openlp/plugins/remotes/lib/httpauth.py
index 7e0e2ebe5..d46620855 100644
--- a/openlp/plugins/remotes/lib/httpauth.py
+++ b/openlp/plugins/remotes/lib/httpauth.py
@@ -35,8 +35,12 @@ http://tools.cherrypy.org/wiki/AuthenticationAndAccessRestrictions
import cherrypy
import logging
+import os
+
+from mako.template import Template
from openlp.core.lib import Settings
+from openlp.core.utils import AppLocation, translate
SESSION_KEY = '_cp_openlp'
@@ -48,6 +52,7 @@ def check_credentials(user_name, password):
Verifies credentials for username and password.
Returns None on success or a string describing the error on failure
"""
+ print "check"
if user_name == Settings().value(u'remotes/user id') and password == Settings().value(u'remotes/password'):
return None
else:
@@ -70,9 +75,12 @@ def check_auth(*args, **kwargs):
for condition in conditions:
# A condition is just a callable that returns true or false
if not condition():
+ print "r1"
raise cherrypy.HTTPRedirect("/auth/login")
else:
+ print "r2"
raise cherrypy.HTTPRedirect("/auth/login")
+ print "r3"
cherrypy.tools.auth = cherrypy.Tool('before_handler', check_auth)
@@ -100,36 +108,31 @@ class AuthController(object):
"""
Called on successful login
"""
+ pass
def on_logout(self, username):
"""
Called on logout
"""
+ pass
- def get_loginform(self, username, msg="Enter login information", from_page="/"):
+ def get_login_form(self, username, message=None, from_page="/"):
"""
Provides a login form
"""
- return """
-
-
-
- User Login
-
-
-
-
-
-
-
-
-