CSS tweaking; disable printing hashes
This commit is contained in:
parent
5546934fae
commit
984d976c8c
4 changed files with 15 additions and 6 deletions
|
@ -24,3 +24,10 @@
|
||||||
.details {
|
.details {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hide the header name if we're on a mobile device
|
||||||
|
@media (max-width: 550px) {
|
||||||
|
.logo .name {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -34,3 +34,7 @@ body {
|
||||||
.u-ml-auto {
|
.u-ml-auto {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.color-yellow {
|
||||||
|
color: $yellow;
|
||||||
|
}
|
||||||
|
|
|
@ -102,7 +102,6 @@ class Store(object):
|
||||||
digest = sha3_256()
|
digest = sha3_256()
|
||||||
digest.update(password.encode("utf-8"))
|
digest.update(password.encode("utf-8"))
|
||||||
digest = digest.hexdigest()
|
digest = digest.hexdigest()
|
||||||
print(f"{username}: {digest!r}")
|
|
||||||
return self._conn.execute(
|
return self._conn.execute(
|
||||||
"INSERT INTO users (name, email, hash, group_id, status_id) VALUES (?, ?, ?, ?, ?) RETURNING id, status_id",
|
"INSERT INTO users (name, email, hash, group_id, status_id) VALUES (?, ?, ?, ?, ?) RETURNING id, status_id",
|
||||||
[username, email, digest, group_id, status_id],
|
[username, email, digest, group_id, status_id],
|
||||||
|
@ -157,7 +156,6 @@ class Store(object):
|
||||||
digest = sha3_256()
|
digest = sha3_256()
|
||||||
digest.update(password.encode("utf-8"))
|
digest.update(password.encode("utf-8"))
|
||||||
digest = digest.hexdigest()
|
digest = digest.hexdigest()
|
||||||
print(f"{username}: {digest!r}")
|
|
||||||
res = self._conn.execute(
|
res = self._conn.execute(
|
||||||
"SELECT id, status_id FROM users WHERE (name=?1 AND hash=?2) OR (email=?1 AND hash=?2) LIMIT 1",
|
"SELECT id, status_id FROM users WHERE (name=?1 AND hash=?2) OR (email=?1 AND hash=?2) LIMIT 1",
|
||||||
[username, digest],
|
[username, digest],
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav class="container navbar">
|
<nav class="container navbar">
|
||||||
<span class="logo six columns">
|
<span class="logo">
|
||||||
<a class="row" href="/">
|
<a class="row" href="/">
|
||||||
<img src="/static/tentacles.svg" alt="Tentacles">
|
<img src="/static/tentacles.svg" alt="Tentacles">
|
||||||
<span class="color-yellow">Tentacles</span>
|
<span class="name color-yellow">Tentacles</span>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
<ul class="menu container">
|
<ul class="menu container">
|
||||||
{% if not ctx.uid %}
|
{% if not ctx.uid %}
|
||||||
<li><a class="twelve columns slide" href="/user/login">Log in</a></li>
|
<li><a class="twelve columns button slide" href="/user/login">Log in</a></li>
|
||||||
<li><a class="twelve columns slide" href="/user/register">Register</a></li>
|
<li><a class="twelve columns button slide" href="/user/register">Register</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a class="twelve columns button slide" href="/jobs">Jobs</a></li>
|
<li><a class="twelve columns button slide" href="/jobs">Jobs</a></li>
|
||||||
<li><a class="twelve columns button slide" href="/files">Files</a></li>
|
<li><a class="twelve columns button slide" href="/files">Files</a></li>
|
||||||
|
|
Loading…
Reference in a new issue