mirror of https://github.com/calzoneman/sync.git
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"]);
|
[self.name, "Insufficient permissions"]);
|
||||||
user.socket.emit("registerChannel", {
|
user.socket.emit("registerChannel", {
|
||||||
success: false,
|
success: false,
|
||||||
error: "You don't have permission to register self channel"
|
error: "You don't have permission to register this channel"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -1071,7 +1071,7 @@ Database.prototype.genPasswordReset = function (ip, name, email, callback) {
|
||||||
query = "INSERT INTO password_reset " +
|
query = "INSERT INTO password_reset " +
|
||||||
"(ip, name, hash, email, expire) VALUES (?, ?, ?, ?, ?) " +
|
"(ip, name, hash, email, expire) VALUES (?, ?, ?, ?, ?) " +
|
||||||
"ON DUPLICATE KEY UPDATE hash=?, expire=?";
|
"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) {
|
function (err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
callback(err, null);
|
callback(err, null);
|
||||||
|
|
Loading…
Reference in New Issue