From c8bf3101aacfdbf83b604aacbe8b9b23a0a5deee Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Mon, 24 Sep 2018 12:01:39 -0700 Subject: [PATCH] fixed multiple issues with the /signin page. #935 #936 #937 --- app/fileManager.js | 4 ++-- app/pages/signin/index.js | 25 ++++++++++++++++++------- app/templates/signupPromo/index.js | 12 +++++------- app/user.js | 10 +++++++--- app/utils.js | 2 +- public/locales/en-US/send.ftl | 5 +---- server/routes/index.js | 1 + 7 files changed, 35 insertions(+), 24 deletions(-) diff --git a/app/fileManager.js b/app/fileManager.js index 9e77aae0..40d47f53 100644 --- a/app/fileManager.js +++ b/app/fileManager.js @@ -45,8 +45,8 @@ export default function(state, emitter) { lastRender = Date.now(); }); - emitter.on('login', () => { - state.user.login(); + emitter.on('login', email => { + state.user.login(email); }); emitter.on('logout', () => { diff --git a/app/pages/signin/index.js b/app/pages/signin/index.js index 6e8248fe..75588071 100644 --- a/app/pages/signin/index.js +++ b/app/pages/signin/index.js @@ -1,6 +1,8 @@ +/* globals LIMITS */ const html = require('choo/html'); const assets = require('../../../common/assets'); const title = require('../../templates/title'); +const bytes = require('../../utils').bytes; module.exports = function(state, emit) { return html` @@ -12,12 +14,11 @@ module.exports = function(state, emit) {
${state.translate('accountBenefitTitle')}
@@ -33,16 +34,17 @@ module.exports = function(state, emit) { onsubmit=${submitEmail} data-no-csrf>
-