From 0d4397ef9819e034a3082491ba7e8c704c4f192b Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Fri, 25 Jul 2014 12:47:50 -0600 Subject: [PATCH] Rebind name and password to inputs on signup page Closes #3410, Ref #3392 - Removed setting name from user email address per issue #3392 --- ghost/admin/routes/signup.js | 1 - ghost/admin/templates/signup.hbs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ghost/admin/routes/signup.js b/ghost/admin/routes/signup.js index 1dd1807671..efcf540059 100644 --- a/ghost/admin/routes/signup.js +++ b/ghost/admin/routes/signup.js @@ -13,7 +13,6 @@ var SignupRoute = Ember.Route.extend(styleBody, loadingIndicator, { email = tokenText.split('|')[1]; controller.token = params.token; controller.email = email; - controller.name = email.substring(0, email.indexOf('@')); } }); diff --git a/ghost/admin/templates/signup.hbs b/ghost/admin/templates/signup.hbs index 90012ed22f..e737a17dfe 100644 --- a/ghost/admin/templates/signup.hbs +++ b/ghost/admin/templates/signup.hbs @@ -12,12 +12,12 @@
- {{input type="text" name="name" autofocus="autofocus" autocorrect="off" value="" }} + {{input type="text" name="name" autofocus="autofocus" autocorrect="off" value=name }}

The name that you will sign your posts with

- {{input type="password" name="password" autofocus="autofocus" autocorrect="off" value="" }} + {{input type="password" name="password" autofocus="autofocus" autocorrect="off" value=password }}

Must be at least 8 characters