|
|
9 лет назад | |
|---|---|---|
| .. | ||
| README.md | 9 лет назад | |
AccountsClienturl_client.js additions:
_attemptToMatchHash() : Try to match the saved value of window.location.hash to one of the reserved hashes, to trigger an Accounts operation. On success, invokes passed handler which, when called from _initUrlMatching(), will always be defaultSuccessHandler()._initUrlMatching(): called by constructor. Inits extra data on instance and invokes _attemptToMatchHash()onResetPasswordLink() Register a function to call when a reset password link is clicked in an email sent by on of the hash handlers. See Accounts-onResetPasswordLinkonEmailVerificationLink() Register a function to call when an email verification link is clicked in an email sent by a hash handler. See Accounts-onEmailVerificationLinkonEnrollmentLink() Register a function to call when an account enrollment link is clicked in an email sent by a hash handler. See Accounts-onEnrollmentLinkwindow.location.hash. Reserved hashes:
reset-passwordverify-emailenroll-accountdefaultSuccessHandler()attemptToMatchHash()AccountsServerresetPassword() : generates a password reset link (from token)verifyEmail(): generates an email verification link (from token)enrollAccount(): generates an account enrollment link (from token)AccountsTestattemptToMatchHash() facade for attemptToMatchHash() functionAccounts (see globals_server.js)url_client.jsdefaultSuccessHandler() : suspends autologin, invokes other handles for the same hash, passing them a closure capable of enabling autologin.package.js)| Symbol | Client | Server | Test |
|---|---|---|---|
| Accounts | O | O | O |
| AccountsClient | O | ||
| AccountsServer | O | ||
| AccountsTest | O |
| Package | Client | Server | Specifics |
|---|---|---|---|
| underscore | O | O | |
| ecmascript | O | O | |
| ddp-rate-limiter | O | O | |
| localstorage | O | ||
| tracker | O | ||
| check | O | ||
| random | O | O | |
| ejson | O | ||
| callback-hook | O | O | |
| service-configuration | O | O | unordered (needs Accounts.connection) |
| ddp | O | O | |
| mongo | O | O | expected abstraction in the future |
| blaze | O | weak: define {{currentUser}} | |
| autopublish | O | weak: publish extra users fields | |
| oauth-encryption | O | weak |