A few minor fixes, also #261
This commit is contained in:
parent
5f70e9dc80
commit
6f0e1e96a1
|
@ -385,7 +385,7 @@ Channel.prototype.tryRegister = function (user) {
|
|||
[self.name, "Insufficient permissions"]);
|
||||
user.socket.emit("registerChannel", {
|
||||
success: false,
|
||||
error: "You don't have permission to register self channel"
|
||||
error: "You don't have permission to register this channel"
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -1071,7 +1071,7 @@ Database.prototype.genPasswordReset = function (ip, name, email, callback) {
|
|||
query = "INSERT INTO password_reset " +
|
||||
"(ip, name, hash, email, expire) VALUES (?, ?, ?, ?, ?) " +
|
||||
"ON DUPLICATE KEY UPDATE hash=?, expire=?";
|
||||
self.query(query, [ip, name, hash, email, exp, hash, expire],
|
||||
self.query(query, [ip, name, hash, email, expire, hash, expire],
|
||||
function (err, res) {
|
||||
if(err) {
|
||||
callback(err, null);
|
||||
|
|
Loading…
Reference in a new issue