Commit Graph

1655 Commits

Author SHA1 Message Date
Nick Martin
9392fbb51d Prepend '_' to internal things in Accounts.
find . -name '*.js' -print0 | xargs -0 perl -pi -e 's/makeClientLoggedIn/_makeClientLoggedIn/g'
find . -name '*.js' -print0 | xargs -0 perl -pi -e 's/makeClientLoggedOut/_makeClientLoggedOut/g'
find . -name '*.js' -print0 | xargs -0 perl -pi -e 's/storeLoginToken/_storeLoginToken/g'
find . -name '*.js' -print0 | xargs -0 perl -pi -e 's/storedLoginToken/_storedLoginToken/g'
find . -name '*.js' -print0 | xargs -0 perl -pi -e 's/unstoreLoginToken/_unstoreLoginToken/g'
find . -name '*.js' -print0 | xargs -0 perl -pi -e 's/storedUserId/_storedUserId/g'
find . -name '*.js' -print0 | xargs -0 perl -pi -e 's/un_storeLoginToken/_unstoreLoginToken/g'
2012-10-02 23:18:57 -07:00
Nick Martin
75c69301c0 Fixup Accounts initialization, which broke on rename. 2012-10-02 23:18:57 -07:00
Nick Martin
1eceed28f9 Replace 'Meteor.accounts' with 'Accounts'.
find . -name '*.js' -print0 | xargs -0 perl -pi -e 's/Meteor\.accounts/Accounts/g'
2012-10-02 23:18:57 -07:00
Nick Martin
4003a6f9e9 Merge branch 'auth-deny' into auth-devel 2012-10-02 23:18:38 -07:00
Nick Martin
0b1c7d10b0 Feedback from review. 2012-10-02 23:17:53 -07:00
Nick Martin
b2801f4c02 Make sure to lock down sensitive accounts collections, even in insecure mode.
Don't update fetch fields when we don't ask for any fetching.

Rework comments.
2012-10-02 23:17:53 -07:00
Nick Martin
d759f93e57 Refactor insert to be parallel to update and remove. Should have no functional impact. 2012-10-02 22:56:42 -07:00
Nick Martin
e5bf91fc24 Use the current state of Meteor.Collection.insecure, not the state when the collection was defined. 2012-10-02 22:56:42 -07:00
Nick Martin
290dc70766 Stop autopublish warning when use accounts. 2012-10-02 22:56:41 -07:00
Nick Martin
9fe341e371 Reorder file. No functional changes. 2012-10-02 22:56:41 -07:00
Nick Martin
6cdab77381 First cut at new allow/deny API. 2012-10-02 22:56:41 -07:00
Avital Oliver
5fc19ef9a4 Fix redraw artifact in chrome with accounts-ui 2012-10-02 22:08:15 -07:00
David Glasser
71851fef89 Merge branch 'devel' into auth
Conflicts:
	app/meteor/skel/.meteor/packages
	examples/leaderboard/.meteor/packages
	packages/livedata/livedata_connection.js
2012-10-01 20:07:27 -07:00
David Glasser
088c33c3f3 Yet another fix to History.md. 2012-10-01 18:07:14 -07:00
David Glasser
d7f45f9d86 More fixes to History.md. 2012-10-01 18:06:58 -07:00
David Glasser
547c93e465 Small fixes to History.md. 2012-10-01 17:58:33 -07:00
David Glasser
8d32db1e0d Start of release notes for the next version. 2012-10-01 17:57:02 -07:00
Nick Martin
4c31671117 Fix default email templates to not have 'http://' in subject line. 2012-10-01 16:39:19 -07:00
Avital Oliver
c06b9ae042 Fix a bug in Meteor.updateOrCreateUser, and add a regression test 2012-10-01 14:45:06 -07:00
David Glasser
be4da5fba4 Revert "Support unlimited tabs by working around browser per-hostname connection limits."
This reverts commit 2495cb2f58.

This change made it easy to construct URLs with more than 63 characters in a
label, which is not legal. We will redo this later with generating a smaller
random token (and taking other precautions to limit the total size of the
label).
2012-10-01 13:45:54 -07:00
David Greenspan
afff7677b5 fix jsparse comments in AST 2012-10-01 12:28:09 -07:00
David Greenspan
998ad47b21 newline at end of file 2012-10-01 10:13:44 -07:00
David Greenspan
be6b876d53 remove trailing comma 2012-09-30 15:30:59 -07:00
David Greenspan
9dce7c7cfa rename tabs to JS Lex and JS Parse 2012-09-30 15:05:32 -07:00
David Greenspan
8f23d52618 rename example jsparse-demo -> parse-inspector 2012-09-30 15:04:55 -07:00
David Greenspan
6686d40526 include comments in jsparse AST 2012-09-30 00:42:04 -07:00
David Greenspan
3201fe5180 jsparse demo improvements (lexer tab) 2012-09-29 21:33:19 -07:00
David Greenspan
f3f64922c4 Merge branch 'preserve-inputs' into devel 2012-09-29 13:26:23 -07:00
David Greenspan
1e82308054 Tweaks from Geoff code review 2012-09-29 13:24:46 -07:00
David Glasser
caecb40f1a Small improvements to LiveRange constructor docs. 2012-09-28 16:14:10 -07:00
David Greenspan
c9f51e3b84 add note to docs about preserve-inputs 2012-09-28 14:09:00 -07:00
David Greenspan
b995d4751a add preserve-inputs package to skel and more examples 2012-09-28 13:23:30 -07:00
David Greenspan
0adc89e736 spark tests no longer clear _globalPreserves 2012-09-28 13:16:00 -07:00
David Glasser
4dcdeb4435 Fix jsparse tests on IE7. 2012-09-28 12:39:03 -07:00
David Glasser
2495cb2f58 Support unlimited tabs by working around browser per-hostname connection limits.
The URL provided to Meteor.connect may now be a function returning a new URL on
each socket connection, or contain the substring "MeteorWildcard" which is
replaced by a random string (a UUID) on each socket connection.
2012-09-28 11:57:48 -07:00
David Glasser
8ff16d3b04 IE7 throws an error if you use unquoted false or true as a key in object literals.
Quoting it works (and x[false] and x[true] work).
2012-09-28 11:42:57 -07:00
David Glasser
80dbb2e7a6 Follow-up to ac9f553: only save migrationData if name provided. 2012-09-28 07:37:13 -07:00
David Glasser
ac9f553d07 Refactor "reload" package: camelCase the API, and make the onMigrate name
optional.

Motivation: now that we don't use "url" as a key in _LivedataConnection, it's
easier to turn it into a function (for MeteorWildcard support).
2012-09-28 00:19:54 -07:00
David Glasser
bee8bcf482 Don't allow migrations if there are any outstanding methods.
This is essentially ported from the auth branch.

Motivation: would like to avoid using url as a reload key, in preparation for
making url a function.
2012-09-28 00:14:41 -07:00
David Greenspan
1920122ddd move idNameLabeler into Spark 2012-09-27 19:34:59 -07:00
Nick Martin
d261630836 Break accounts-ui-unstyled out from accounts-ui. 2012-09-27 19:34:37 -07:00
Nick Martin
101acac9a3 Meteor.user() on the server (only in methods for now). 2012-09-27 19:34:36 -07:00
Nick Martin
72b327f196 Remove enrollAccount as a separate method and token. Just use resetPassword. 2012-09-27 19:34:36 -07:00
Nick Martin
5def0ac65f Add 'Meteor.setPassword' on the server. Relax constraints around setting an initial password for users. 2012-09-27 19:34:36 -07:00
David Glasser
c0815f5061 Fix #353: livedata_connection state corruption with "wait: true" methods.
When a "wait: true" method is ready to fire its callback, and there are blocked
methods but no blocked "wait" methods, we used to leave the blocked methods in
the blocked_methods array in addition to sending them. In addition to leading to
potentially leading to duplicate method calls (ignored by the server), this
blocked all code push migrations.
2012-09-27 19:34:36 -07:00
David Greenspan
07c72f28c9 minor from code review 2012-09-27 19:26:22 -07:00
Matt DeBergalis
687407a4d3 Merge remote-tracking branch 'origin/devel' into auth 2012-09-27 16:38:21 -07:00
David Greenspan
4e15995e4f Fix for Handlebars helper functions returning null
Now you can do {{foo.bar}} if foo() returns null,
and get nothing (silent failure) just like you do
if foo is a non-existent property or function.
2012-09-27 14:31:21 -07:00
David Glasser
5470b3f511 Merge branch 'devel' into auth 2012-09-27 13:51:21 -07:00
David Glasser
ef874ae15d node.sh: no readline if in Emacs shell. 2012-09-27 13:38:29 -07:00