mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
commit
49999a7f15
6
app.js
6
app.js
@ -132,9 +132,9 @@
|
|||||||
*/
|
*/
|
||||||
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/register/', admin.register);
|
ghost.app().get('/ghost/signup/', admin.signup);
|
||||||
ghost.app().post('/ghost/login/', admin.auth);
|
ghost.app().post('/ghost/login/', admin.auth);
|
||||||
ghost.app().post('/ghost/register/', admin.doRegister);
|
ghost.app().post('/ghost/signup/', admin.doRegister);
|
||||||
ghost.app().get('/ghost/editor/:id', auth, admin.editor);
|
ghost.app().get('/ghost/editor/:id', auth, admin.editor);
|
||||||
ghost.app().get('/ghost/editor', auth, admin.editor);
|
ghost.app().get('/ghost/editor', auth, admin.editor);
|
||||||
ghost.app().get('/ghost/content', auth, admin.content);
|
ghost.app().get('/ghost/content', auth, admin.content);
|
||||||
@ -162,4 +162,4 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
}, errors.logAndThrowError);
|
}, errors.logAndThrowError);
|
||||||
}());
|
}());
|
||||||
|
@ -75,8 +75,8 @@
|
|||||||
res.redirect('/ghost/login/');
|
res.redirect('/ghost/login/');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
'register': function (req, res) {
|
'signup': function (req, res) {
|
||||||
res.render('register', {
|
res.render('signup', {
|
||||||
bodyClass: 'ghost-login',
|
bodyClass: 'ghost-login',
|
||||||
hideNavbar: true,
|
hideNavbar: true,
|
||||||
adminNav: setSelected(adminNavbar, 'login')
|
adminNav: setSelected(adminNavbar, 'login')
|
||||||
@ -95,7 +95,7 @@
|
|||||||
res.redirect('/ghost/login/');
|
res.redirect('/ghost/login/');
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
req.flash('error', error.message);
|
req.flash('error', error.message);
|
||||||
res.redirect('/ghost/register/');
|
res.redirect('/ghost/signup/');
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
req.flash('error', "The password is too short. Have at least 6 characters in there");
|
req.flash('error', "The password is too short. Have at least 6 characters in there");
|
||||||
@ -191,4 +191,4 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
module.exports = adminControllers;
|
module.exports = adminControllers;
|
||||||
}());
|
}());
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<button class="button-save" type="submit">Log in</button>
|
<button class="button-save" type="submit">Log in</button>
|
||||||
<section class="meta">
|
<section class="meta">
|
||||||
<a class="forgotten-password" href="#">Forgotten password?</a> • <a href="/ghost/register/">Register new user</a>
|
<a class="forgotten-password" href="#">Forgotten password?</a> • <a href="/ghost/signup/">Register new user</a>
|
||||||
</section>
|
</section>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{!< default}}
|
{{!< default}}
|
||||||
<section class="login-box">
|
<section class="login-box js-login-container">
|
||||||
<form id="register" method="post">
|
<form id="register" method="post">
|
||||||
<div class="email-wrap">
|
<div class="email-wrap">
|
||||||
<input class="email_address" type="text" placeholder="Email Address" name="email_address">
|
<input class="email_address" type="text" placeholder="Email Address" name="email_address">
|
||||||
@ -12,4 +12,4 @@
|
|||||||
<a href="/ghost/login/">Log in</a>
|
<a href="/ghost/login/">Log in</a>
|
||||||
</section>
|
</section>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
Loading…
Reference in New Issue
Block a user