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 {
|
||||
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 {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.color-yellow {
|
||||
color: $yellow;
|
||||
}
|
||||
|
|
|
@ -102,7 +102,6 @@ class Store(object):
|
|||
digest = sha3_256()
|
||||
digest.update(password.encode("utf-8"))
|
||||
digest = digest.hexdigest()
|
||||
print(f"{username}: {digest!r}")
|
||||
return self._conn.execute(
|
||||
"INSERT INTO users (name, email, hash, group_id, status_id) VALUES (?, ?, ?, ?, ?) RETURNING id, status_id",
|
||||
[username, email, digest, group_id, status_id],
|
||||
|
@ -157,7 +156,6 @@ class Store(object):
|
|||
digest = sha3_256()
|
||||
digest.update(password.encode("utf-8"))
|
||||
digest = digest.hexdigest()
|
||||
print(f"{username}: {digest!r}")
|
||||
res = self._conn.execute(
|
||||
"SELECT id, status_id FROM users WHERE (name=?1 AND hash=?2) OR (email=?1 AND hash=?2) LIMIT 1",
|
||||
[username, digest],
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<nav class="container navbar">
|
||||
<span class="logo six columns">
|
||||
<span class="logo">
|
||||
<a class="row" href="/">
|
||||
<img src="/static/tentacles.svg" alt="Tentacles">
|
||||
<span class="color-yellow">Tentacles</span>
|
||||
<span class="name color-yellow">Tentacles</span>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
|
@ -26,8 +26,8 @@
|
|||
|
||||
<ul class="menu container">
|
||||
{% if not ctx.uid %}
|
||||
<li><a class="twelve columns 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/login">Log in</a></li>
|
||||
<li><a class="twelve columns button slide" href="/user/register">Register</a></li>
|
||||
{% else %}
|
||||
<li><a class="twelve columns button slide" href="/jobs">Jobs</a></li>
|
||||
<li><a class="twelve columns button slide" href="/files">Files</a></li>
|
||||
|
|
Loading…
Reference in a new issue