Commit 1ca7fb83 authored by Sacha's avatar Sacha Committed by SXibolet@2PITAU
Browse files

updates <links>

parent 3fc37dd5
......@@ -57,11 +57,11 @@ def create_user(email, name, password, school):
def dump_user(username):
"""return all rows about user
"""return all rows about user except password
"""
cur, _ = get_dict_cursor()
cur.execute('''
SELECT *
SELECT (Id, School, Name, Joined, Logins)
FROM Users
WHERE
Id = %s;''', (username,))
......
......@@ -40,7 +40,7 @@
<hr>
Please login or <a href="register">register</a>.
</span>
<p><noscript><tt>requires javascript</tt></noscript></p>
<p><noscript><span style='font-family: Optima'>CONTROVERSY</span> <i>requires JavaScript. We&rsquo;re not doing anything fishy: the project is free (as in freedom) software, and you may view the source files here: <a href='https://github.com/sxibolet/controversy' target=_blank>https://github.com/sxibolet/controversy</a></i></noscript></p>
<form style="display:none" method=POST>
{{ form.hidden_tag() }}
{{ form.email(value=username, type="email", class_="field", placeholder="email (username)", required="required") }}
......
......@@ -21,9 +21,10 @@
<b>You're already <a href="/">logged in</a>, but feel free to create another account</b>
</p>
{% endif %}
<p>We encourage you to use a simple password, like a phrase; we used an <code>md5</code> hash, which has known vulnerabilities. This system is too informal that switching to a more secure hash is not worth reseting every user's current password.</p>
<form method=POST>
{{ form.hidden_tag() }}
{{ form.name(class_="field", autocomplete="words", placeholder="full name") }}
{{ form.name(class_="field", autocomplete="words", placeholder="first or full name") }}
{{ form.email(class_="field", type="email", placeholder="email (username)") }}
{{ form.password(class_="field", placeholder="simple password") }}
{{ form.school(class_="field", placeholder="institution") }}
......
......@@ -13,7 +13,9 @@
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/styles/sphinx.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/css/Libre_Baskerville.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/css/Inconsolata.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/css/sphinx.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
......
......@@ -12,7 +12,9 @@
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/styles/sphinx.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/css/Libre_Baskerville.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/css/Inconsolata.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/css/sphinx.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
......
......@@ -12,7 +12,9 @@
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/styles/sphinx.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/css/Libre_Baskerville.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/css/Inconsolata.css" type="text/css" />
<link rel="stylesheet" href="//www.cdn.2pitau.org/css/sphinx.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
......
......@@ -2,4 +2,4 @@
{# Import the theme's layout. #}
{% extends "!layout.html" %}
{% set css_files = css_files + ['//www.cdn.2pitau.org/styles/sphinx.css'] %}
{% set css_files = css_files + ['//www.cdn.2pitau.org/css/Libre_Baskerville.css', '//www.cdn.2pitau.org/css/Inconsolata.css', '//www.cdn.2pitau.org/css/sphinx.css'] %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment