|
|
9 år sedan | |
|---|---|---|
| .. | ||
| README.md | 9 år sedan | |
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.