From ebe6072225fe4aaa58ed1fd875a49e4b6134fcd2 Mon Sep 17 00:00:00 2001
From: David Baker <dave@matrix.org>
Date: Thu, 16 Jul 2015 16:04:12 +0100
Subject: [PATCH] Make this a done so it doesn't swallow exceptions

---
 src/controllers/templates/Login.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/controllers/templates/Login.js b/src/controllers/templates/Login.js
index 1c055970..1b1f94cf 100644
--- a/src/controllers/templates/Login.js
+++ b/src/controllers/templates/Login.js
@@ -72,7 +72,7 @@ module.exports = {
         MatrixClientPeg.get().login('m.login.password', {
             'user': that.refs.user.getDOMNode().value,
             'password': that.refs.pass.getDOMNode().value
-        }).then(function(data) {
+        }).done(function(data) {
             // XXX: we assume this means we're logged in, but there could be a next stage
             MatrixClientPeg.replace(Matrix.createClient({
                 baseUrl: that.state.hs_url,