0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fix for validation on login

closes #490
This commit is contained in:
Hannah Wolfe 2013-08-21 17:57:07 +01:00
parent 1e95ec0c3d
commit 590ba48988

View file

@ -240,7 +240,7 @@ when.all([ghost.init(), filters.loadCoreFilters(ghost), helpers.loadCoreHelpers(
ghost.app().get(/^\/logout\/?$/, admin.logout); ghost.app().get(/^\/logout\/?$/, admin.logout);
ghost.app().get('/ghost/login/', admin.login); ghost.app().get('/ghost/login/', admin.login);
ghost.app().get('/ghost/signup/', admin.signup); 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/signup/', signupValidate, admin.doRegister);
ghost.app().post('/ghost/changepw/', auth, admin.changepw); ghost.app().post('/ghost/changepw/', auth, admin.changepw);
ghost.app().get('/ghost/editor/:id', auth, admin.editor); ghost.app().get('/ghost/editor/:id', auth, admin.editor);