diff options
author | Guilherme Salgado <guilherme.salgado@linaro.org> | 2011-04-19 08:45:58 -0300 |
---|---|---|
committer | Guilherme Salgado <guilherme.salgado@linaro.org> | 2011-04-19 08:45:58 -0300 |
commit | 23e9dacba27c3ab95bc06095ae483b0c8e774250 (patch) | |
tree | 03cda08b60de891a8d1573348ec3ed0a31016f60 /templates | |
parent | 0c981526cd9dab56c282e896985e4b07e049d781 (diff) |
Make it possible, via a config setting, to use OpenID for authentication
The default still is to authenticate against the local user database, though.
Signed-off-by: Guilherme Salgado <guilherme.salgado@linaro.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 4 | ||||
-rw-r--r-- | templates/patchwork/openid-register.html | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index e14470e..cc6c19f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,9 +28,9 @@ <a href="{% url patchwork.views.user.profile %}">profile</a> :: <a href="{% url auth_logout %}">logout</a> {% else %} - <a href="{% url auth_login %}">login</a> + <a href="{{ login_url }}">login</a> <br/> - <a href="{% url registration_register %}">register</a> + <a href="{{ register_url }}">register</a> {% endif %} </div> <div style="clear: both;"></div> diff --git a/templates/patchwork/openid-register.html b/templates/patchwork/openid-register.html new file mode 100644 index 0000000..98d372e --- /dev/null +++ b/templates/patchwork/openid-register.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block title %}Register{% endblock %} +{% block heading %}Register{% endblock %} + +{% block body %} +<h2>No need to register</h2> + +<p>This Patchwork instance uses OpenID for authentication, so you can just +<a href="{{ login_url }}">login</a>.</p> +{% endblock %} |