Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Flush when testing login

  • Loading branch information...
commit 8dab7ee1d6292895fc6a96ffb50f4189ee9e25d8 1 parent 5860523
@zquestz authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  simplechat.js
View
2  simplechat.js
@@ -109,6 +109,8 @@ if (Meteor.is_client) {
username = registerbox.val(),
now = (new Date()).getTime();
+ Meteor.flush();
+
if (Template.register.warning() === "") {
var user_id = Users.insert({name: username, last_seen: now});
Session.set("user_id", user_id);
Please sign in to comment.
Something went wrong with that request. Please try again.