Changed HTML view after login

This commit is contained in:
Jakub Trllo 2018-11-14 12:23:20 +01:00
parent 9967d0d5f6
commit 73b7560519
2 changed files with 23 additions and 15 deletions

View file

@ -188,7 +188,7 @@ class Login_Dialog_ui(QtWidgets.QWidget):
else:
self._invalid_input(self.user_input)
self._invalid_input(self.api_input)
self.setError("We're unable to connect to Ftrack with these credentials")
self.setError("We're unable to sign in to Ftrack with these credentials")
def open_ftrack(self):
url = self.ftsite_input.text()

View file

@ -28,31 +28,39 @@ class LoginServerHandler(BaseHTTPRequestHandler):
message = """
<html>
<style type="text/css">
body {{
max-width: 400px;
margin: 30px auto;
font-family: 'Open Sans', 'Droid Sans', Arial, Helvetica, sans-serif;
background-color: #333;
text-align: center;
color: #ccc;
margin-top: 200px;
}}
h1 {{
font-size: 20px;
font-weight: normal;
font-family: "DejaVu Sans";
font-size: 36px;
margin: 20px 0;
}}
p {{
color: #999;
h3 {{
font-weight: normal;
font-family: "DejaVu Sans";
margin: 30px 10px;
}}
em {{
color: #fff;
}}
</style>
<body>
<h1>Sign in to ftrack connect was successful</h1>
<p>
You signed in with username <em>{0}</em> and can now
close this window.
</p>
</body>
<body>
<h1>Sign in to Ftrack was successful</h1>
<h3>
You signed in with username <em>{0}</em>.
</h3>
<h3>
You can close this window now.
</h3>
</body>
</html>
""".format(api_user)
else: