mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Adds `Accounts.validateLoginAttempt`, `Accounts.onLogin`, and `Accounts.onLoginFailure`. The process for logging in a user is consolidated in accounts-base, which is now the only package which directly accesses login tokens in the database. All login methods now go through `Accounts._loginMethod`, which ensures that exceptions are captured and login hooks are called in all cases. The callback hook implementation code from livedata is extracted into an internal `callback-hook` package, where it can be used by accounts.
13 lines
241 B
JavaScript
13 lines
241 B
JavaScript
Package.describe({
|
|
summary: "Register callbacks on a hook",
|
|
internal: true
|
|
});
|
|
|
|
Package.on_use(function (api) {
|
|
api.use('underscore', ['client', 'server']);
|
|
|
|
api.export('Hook');
|
|
|
|
api.add_files('hook.js', ['client', 'server']);
|
|
});
|