mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 07:11:53 +00:00
Fix random user
This commit is contained in:
parent
d39d031c9c
commit
d699c0096b
3 changed files with 10 additions and 4 deletions
|
@ -12,12 +12,12 @@ var env = process.env.NODE_ENV || "development";
|
|||
var parseCookies = EnslClient.parseCookies;
|
||||
|
||||
var assignRandomUser = (socket, next) => {
|
||||
usersHelper.getRandomUser(function (error, _, body) {
|
||||
usersHelper.getRandomUser(function (error, user) {
|
||||
if (error) {
|
||||
winston.error(error);
|
||||
return next(new Error("Authentication Failed"))
|
||||
}
|
||||
socket._user = new User(body);
|
||||
socket._user = user;
|
||||
return next();
|
||||
});
|
||||
};
|
||||
|
|
|
@ -684,8 +684,9 @@ var Gatherers = React.createClass({
|
|||
|
||||
return (
|
||||
<tr key={gatherer.user.id} data-userid={gatherer.user.id}>
|
||||
<td className="col-md-9">{gatherer.user.username} <br />
|
||||
{country} {lifeform} {division} {team}
|
||||
<td className="col-md-9">
|
||||
<p className="gatherer">{gatherer.user.username}</p>
|
||||
<p className="gatherer">{country} {lifeform} {division} {team}</p>
|
||||
</td>
|
||||
<td className="col-md-3 text-right">{action} </td>
|
||||
</tr>
|
||||
|
|
|
@ -6,6 +6,11 @@ html, body {
|
|||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.gatherer {
|
||||
margin-bottom: 3px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
#chatroom {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue