mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 08:20:36 +01:00
Merge remote-tracking branch 'origin'
This commit is contained in:
@@ -281,12 +281,12 @@ footer.footer {
|
|||||||
|
|
||||||
.account-picture-block{
|
.account-picture-block{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
|
margin-right:20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.account-bio-block{
|
.account-bio-block{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
margin-left:20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.account-bio-label{
|
.account-bio-label{
|
||||||
|
|||||||
@@ -128,7 +128,14 @@ passport.deserializeUser(function(uid, done) {
|
|||||||
|
|
||||||
for (var i=0, ii=routes.length; i<ii; i++) {
|
for (var i=0, ii=routes.length; i<ii; i++) {
|
||||||
(function(route) {
|
(function(route) {
|
||||||
|
|
||||||
app.get('/' + route, function(req, res) {
|
app.get('/' + route, function(req, res) {
|
||||||
|
|
||||||
|
if ((route === 'login' || route ==='register') && (req.user && req.user.uid > 0)) {
|
||||||
|
res.redirect('/account');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
res.send(templates['header'] + '<script>templates.ready(function(){ajaxify.go("' + route + '");});</script>' + templates['footer']);
|
res.send(templates['header'] + '<script>templates.ready(function(){ajaxify.go("' + route + '");});</script>' + templates['footer']);
|
||||||
});
|
});
|
||||||
}(routes[i]));
|
}(routes[i]));
|
||||||
|
|||||||
Reference in New Issue
Block a user