Permalink
Browse files

Setting password updates all instances with a message

  • Loading branch information...
1 parent 1962f2b commit 2a54f89e3e6ffdc726777a57b56afa8f476b4a49 @wbecker committed Mar 5, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/chattrr.js
View
7 src/chattrr.js
@@ -470,8 +470,11 @@
if ((!passwordExists && (message.password === "")) ||
(password === message.password)) {
db.set(f.getUserPasswordVar(userToken), message.newPassword);
- f.sendMessage("Your password has now been set. You will be prompted " +
- "for this when you now start chattrr.", client, userToken, urlId);
+ f.doOnOpenClients(userToken, function (openClient) {
+ f.sendMessage("Your password has now been set. You will be " +
+ " prompted for this when you now start chattrr.",
+ openClient, userToken, urlId);
+ });
}
else {
f.sendMessage("Your old password did not match your existing " +

0 comments on commit 2a54f89

Please sign in to comment.