~maxiberta/canonical-identity-provider/vanilla-sshkeys-debug

« back to all changes in this revision

Viewing changes to src/webui/templates/404-no-token.html

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Daniel Manrique
  • Date: 2019-05-10 20:05:03 UTC
  • mfrom: (1688.1.5 better-evil-token-instructions)
  • Revision ID: otto-copilot@canonical.com-20190510200503-84bi7gxh05m1t36u
Show friendly help if we can't find the openid session token from a validation link

The most common reason for that is initiating a login on a third-party site,
creating the account in sso as part of the flow, then clicking on the
activation link on another device or browser.

SO instead of sending people to a terse 404 page which causes them to fume and
come file bugs which end up as dupes of https://pad.lv/1693375, the new (still
a 404-code) page explains what to do and provides a link where they can
validate their e-mail address out of the third-party login flow (which is the
workaround we recommend anyway, after painful back and forth checking the
format of the link they clicked on and referring to the cited bug)


Merged from https://code.launchpad.net/~roadmr/canonical-identity-provider/better-evil-token-instructions/+merge/367285

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "base.html" %}
 
2
{% load i18n %}
 
3
 
 
4
{% comment %}
 
5
Copyright 2019 Canonical Ltd.  This software is licensed under the
 
6
GNU Affero General Public License version 3 (see the file  LICENSE).
 
7
{% endcomment %}
 
8
 
 
9
{% block title %}
 
10
    {% trans "Not found" %}
 
11
{% endblock %}
 
12
 
 
13
{% block text_title %}
 
14
    <h1 class="main">Invalid address validation link</h1>
 
15
{% endblock %}
 
16
 
 
17
{% block content %}
 
18
        <div>
 
19
          <p>{% blocktrans %}You clicked on an e-mail address validation link from Ubuntu One SSO; however, the information from the link seems to be invalid or stale.{% endblocktrans %}</p>
 
20
          <p>{% blocktrans %}This could be for one of the following reasons:{% endblocktrans %}</p>
 
21
          <ol class="u1-list">
 
22
              <li>{% blocktrans %}The link has already been used. You don't need to validate your address again. {% endblocktrans %}</li>
 
23
              <li>{% blocktrans %}You created your Ubuntu One SSO account while starting a session on another site. You must click the validation link on the same browser where you started your session on the other site.{% endblocktrans %}</li>
 
24
          </ol>
 
25
          <p>{% blocktrans %}You can also go to <a href="{{email_url}}">Your account's e-mail page</a> and click on "Verify" next to the e-mail address you want to verify. This is the best solution if you are unable to click the link on the same browser where you started your session on the other site.{% endblocktrans %}</p>
 
26
        </div>
 
27
{% endblock %}