From 590ba48988b51b9c5e8d99afbb84c997436d7f21 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Wed, 21 Aug 2013 17:57:07 +0100 Subject: [PATCH] Fix for validation on login closes #490 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b952ca6b88..eb71bbf89f 100644 --- a/index.js +++ b/index.js @@ -240,7 +240,7 @@ when.all([ghost.init(), filters.loadCoreFilters(ghost), helpers.loadCoreHelpers( ghost.app().get(/^\/logout\/?$/, admin.logout); ghost.app().get('/ghost/login/', admin.login); ghost.app().get('/ghost/signup/', admin.signup); - ghost.app().post('/ghost/login/', signupValidate, admin.auth); + ghost.app().post('/ghost/login/', admin.auth); ghost.app().post('/ghost/signup/', signupValidate, admin.doRegister); ghost.app().post('/ghost/changepw/', auth, admin.changepw); ghost.app().get('/ghost/editor/:id', auth, admin.editor);