Commit Graph

67 Commits

Author SHA1 Message Date
Cedla
4160dc2167 Add support for platform-specific preferences in mobile-config.js
Fixes #5200.
2015-09-21 13:19:25 +02:00
Sashko Stubailo
423c424e1d Remove link to Meteor manual 2015-09-15 13:42:52 -07:00
Sashko Stubailo
0bb7c7c0b2 New addAssets package.js API; same file can be source and asset
1. Add `addAssets` API to `package.js`
2. Rename `getSourcesFunc` to `getFiles` in internal code
3. Changed `PackageAPI#sources` to `PackageAPI#files` with a new structure that
   has separate objects for assets and sources
4. Added some tests for different error conditions
5. The same file can now be a source and an asset
2015-09-02 13:14:02 -07:00
David Greenspan
2b751b549b Merge branch 'devel' into release-1.2 2015-08-26 17:13:32 -07:00
Martijn Walraven
dac019fda8 Add case-insensitive accounts-password utility functions
Since we have added additional constraints to the database around case
sensitivity, we now want to discourage people from working with the Accounts
collection directly and provide an API for changing certain fields in a correct
way.

Methods that do database checks before and after the operation:
  Accounts.setUsername
  Accounts.addEmail
  Accounts.removeEmail

Methods that make sure to use a case-insensitive query to retrieve the user
  Accounts.findUserByUsername
  Accounts.findUserByEmail

PR #5024
2015-08-26 12:07:51 -07:00
Ben Newman
62ced17a9d Convert Accounts{Common,Client,Server} to ES2015 classes.
Now with proper documentation!

Closes #4930.
2015-08-19 17:20:58 -04:00
Dan Dascalescu
8a06985fd2 Mention the _id is included in the user arg to onCreateUser 2015-08-18 13:58:11 -07:00
David Greenspan
2cfd6a322a Merge branch 'master' into devel 2015-08-03 14:18:55 -07:00
Anubhav Jain
6a525fbea7 Updated DDPRateLimiter structure per Avi's suggestions and modified tests.
Updated documentation and default rate limit as well.
2015-07-22 09:52:10 -07:00
Anubhav Jain
759b9a2c19 Updating docs 2015-07-22 09:52:09 -07:00
Anubhav Jain
4cc907f7e4 Updating docs and fixing code review comments. 2015-07-22 09:52:09 -07:00
Anubhav Jain
50d3437da9 Updated comments and line sizes in markdown and rate limiter package 2015-07-22 09:52:09 -07:00
Anubhav Jain
9f9638e3a8 Added DDPRateLimiter to API docs 2015-07-22 09:52:08 -07:00
Anubhav Jain
567db5605a Changed email text to be optional in password_server.js 2015-07-21 15:22:58 -07:00
Patrick Moore
67270eecb3 Docs: Assets are not shared between packages
[stubailo: edits]
2015-07-14 15:38:27 -07:00
Slava Kim
3311c5df9c Point to released readme of Spacebars
Fixes #4729
2015-07-12 12:47:55 -07:00
Martijn Walraven
3790e0987b Add ability to login with a case insensitive username or email
Closes #550.

`loginWithPassword` now matches username or email in a case insensitive manner.
If there are multiple users with a username or email only differing in case, a
case sensitive match is required.

Although `createUser` won't let you create users with ambiguous usernames or
emails, this could happen with existing databases or if you modify the users
collection directly.

Because MongoDB does not support case insensitive indexes, we perform a case
insensitive query both before and after inserting a new user, removing the user
when we detect another matching user has been inserted in the meantime. This
leaves us with the theoretical possibility that a server crash could occur in
between the insert and the second query or remove. In that situation there
would be two accounts with a username or email only differing in case, so we
will require a case sensitive login.
2015-06-29 19:12:52 -07:00
ekatek
85a2a78e2a Squashed commit of the following:
commit 6d346097a3
Merge: 800ec27 2ce8171
Author: freiit <freiit@users.noreply.github.com>
Date:   Tue Jun 16 11:56:53 2015 +0200

    Merge pull request #1 from freiit/freiit-patch-1

    Trivial inconsistency in the docs fixed.

commit 2ce81712d6
Author: freiit <freiit@users.noreply.github.com>
Date:   Tue Jun 16 11:47:30 2015 +0200

    Trivial inconsistency in the docs fixed.
2015-06-16 14:12:04 -07:00
David Glasser
6395521041 Document valid template names
Fixes #4417.

See also #1602.
2015-06-10 15:12:56 -07:00
David Glasser
67e13306c6 Document rawCollection/rawDatabase
Fixes #4509.
2015-06-10 14:41:42 -07:00
Dan Dascalescu
9adcfd32dc Typo fix 2015-06-10 13:53:10 -07:00
Sashko Stubailo
5511298a13 Improve new template.subscribe example 2015-05-29 12:44:54 -04:00
Sashko Stubailo
fcc83be5bd Add another example for template.subscribe 2015-05-19 11:30:22 -07:00
David Glasser
91ce1561c3 tracker: implement Computation.onStop
Fixes #3915.
2015-04-29 00:18:13 -07:00
David Glasser
342a234e85 jsdoc update; fix api boxes broken by #4191 2015-04-29 00:17:01 -07:00
Slava Kim
c48dbfe477 Remove $ signs from docs 2015-04-28 16:01:21 -07:00
Eric Wyne
f25c3683a4 change docs to doc
This parameter name is misleading. A single document is passed to the Meteor.deny({update}) function, not an array of documents
2015-04-14 14:36:58 -07:00
David Glasser
af647f7e7e Tweaks 2015-04-14 14:08:27 -07:00
Henry Todd
93b3519ad7 Add notice about ROOT_URL to OAuth API docs
A possible pitfall when configuring OAuth is that after proxying the Meteor application behind (for instance) nginx, the ROOT_URL doesn't match the hostname/port combination expected.
2015-04-14 14:06:46 -07:00
Slava Kim
cdaaa6b0eb Merge branch 'master' into devel 2015-04-02 14:43:23 -07:00
Slava Kim
ce322adf05 Use html and not handlebars for docs in md 2015-03-31 17:08:51 -07:00
Slava Kim
da6cef3b9c Merge branch 'onrendered-example' 2015-03-31 17:04:38 -07:00
Slava Kim
a90e73416b More descriptive code examples 2015-03-31 17:04:06 -07:00
Mitar
e85fdc9059 docs: can use currentData inside template.autorun
I think it is important to stress that you can use Template.currentData
inside template.autorun, because you cannot use it inside
Tracker.autorun, it throws an error that current view does not exist.
2015-03-27 22:51:13 -07:00
Slava Kim
14bce609c9 Add some examples for onCreated and onDestroyed 2015-03-21 21:46:11 -07:00
Slava Kim
d332646a54 Remove redundant information from the onRendered example. 2015-03-21 21:37:15 -07:00
Slava Kim
e7a0906a48 Add an example for Template.onRendered 2015-03-18 15:52:22 -07:00
hwillson
cca2ef2354 Minor adjustments to add blaze and spacebars package references.
[stubailo: Some improvements before merging]
2015-03-17 13:55:44 -07:00
Sashko Stubailo
b652770229 Fix the example to use self instead of this 2015-03-11 16:30:57 -07:00
Sashko Stubailo
50de6f59f7 Add another example for TemplateInstance#subscribe 2015-03-11 10:30:54 -07:00
Slava Kim
7bfa78a7bf Merge branch 'helpers-docs' into devel 2015-02-24 12:10:59 -08:00
Slava Kim
0af4a8ff7c Sashko's comments 2015-02-24 10:55:43 -08:00
Jacek Migdal
0e3c992fd8 No argument in client accounts callbacks.
https://github.com/meteor/meteor/issues/3572

[stubailo] Improve docs
2015-02-23 21:51:27 -08:00
Jacek Migdal
b5861c114a Implement Account.onLogin/onLoginFailure on client.
https://github.com/meteor/meteor/issues/3572
2015-02-23 21:51:26 -08:00
Sashko Stubailo
ee59870e06 Add docs about new Session.set API, wrap doc comments 2015-02-23 21:42:13 -08:00
Slava Kim
37f3230591 Merge branch 'upgrade-cordova' into devel
This merge applies changes to the dev-bundle script, but the new dev-bundle is
yet to be built.
2015-02-16 14:07:00 -08:00
Slava Kim
59c9c72450 Add more documentation to helpers
Describe arguments to helpers. Point to the Spacebars readme. Note that each
helper is an autorun
2015-02-12 14:10:29 -08:00
Sashko Stubailo
c0aab1e8d3 Template-level subscriptions 2015-02-11 18:10:33 -08:00
Sashko Stubailo
085e02d525 Add onStopped callback to subscriptions
Also, add subscriptionId to handles
Fixes #1461
2015-02-11 18:10:33 -08:00
David Glasser
5990e71ddc Remove legacy AppConfig code
Nothing ever made full use of the promise of the complexity of the
API (configuration that can change at runtime) anyway.

This includes completely ignoring the $APP_CONFIG variable.

I opened GitHub issues against the only Atmosphere packages that had
dependencies on application-configuration (none of which actually used
the package other than by declaring the dependency).
2015-01-29 14:03:20 -08:00