From 6d3f129065c0417462add4495842afe9480cc199 Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Fri, 23 Sep 2011 07:30:35 -0700
Subject: [PATCH] added a cancel link to check-email screen

---
 browserid/lib/wsapi.js                         | 1 +
 browserid/static/dialog/views/confirmemail.ejs | 1 +
 2 files changed, 2 insertions(+)

diff --git a/browserid/lib/wsapi.js b/browserid/lib/wsapi.js
index 1b5ff6b18..e27abae91 100644
--- a/browserid/lib/wsapi.js
+++ b/browserid/lib/wsapi.js
@@ -222,6 +222,7 @@ function setup(app) {
               logger.error("error completing the verification: " + err);
               resp.json(false);
             } else {
+              // FIXME: not sure if we want to do this (ba)
               // at this point the user has set a password associated with an email address
               // that they've verified.  We create an authenticated session.
               req.session.authenticatedUser = email;
diff --git a/browserid/static/dialog/views/confirmemail.ejs b/browserid/static/dialog/views/confirmemail.ejs
index 6c0a08334..071c07315 100644
--- a/browserid/static/dialog/views/confirmemail.ejs
+++ b/browserid/static/dialog/views/confirmemail.ejs
@@ -4,6 +4,7 @@
               <p style="margin:20px auto;font-size:150%;"><strong style="color:#222">Check your email!</strong></p>
               <p>We sent a confirmation email to <span id="displayemail"><%= email %></span></p>
               <p>To finish signing in just click the verify link we sent to your email address.</p>
+              <p>If this is a mistake, <a href="#" id="back">cancel this email</a>.</p>
           </div>
       </div>
   </div>
-- 
GitLab