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>
-