mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
added reputation to /account
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
<span id="membersince">{user.joindate}</span>
|
||||
<br/>
|
||||
|
||||
<span>Reputation </span>
|
||||
<span id="membersince">{user.reputation}</span>
|
||||
<br/>
|
||||
|
||||
|
||||
<!-- END user -->
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ var config = require('../config.js'),
|
||||
RDB.db.hgetall(String(uid), function(err, data){
|
||||
if(err === null)
|
||||
{
|
||||
if(data && data['password'])
|
||||
delete data['password'];
|
||||
callback(data);
|
||||
}
|
||||
|
||||
@@ -315,7 +315,10 @@ passport.deserializeUser(function(uid, done) {
|
||||
return res.redirect('/403');
|
||||
|
||||
user.getUserData(req.params.uid, function(data){
|
||||
if(data)
|
||||
res.send(data);
|
||||
else
|
||||
res.send("User doesn't exist!");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user