mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 20:43:01 +03:00
9fafc38b79
* 🎨 deny auto switch
no issue
- deny auth switch after the blog was setup
- setup completed depends on the status of the user right now, see comments
* Updates from comments
- re-use statuses in user model
- update error message
24 lines
643 B
JavaScript
24 lines
643 B
JavaScript
var passport = require('./passport'),
|
|
authorize = require('./authorize'),
|
|
authenticate = require('./authenticate'),
|
|
sync = require('./sync'),
|
|
oauth = require('./oauth'),
|
|
validation = require('./validation'),
|
|
ghostAuth = require('./ghost-auth');
|
|
|
|
exports.init = function (options) {
|
|
oauth.init(options);
|
|
sync.init(options);
|
|
|
|
return passport.init(options)
|
|
.then(function (response) {
|
|
return {auth: response.passport};
|
|
});
|
|
};
|
|
|
|
exports.validation = validation;
|
|
exports.oauth = oauth;
|
|
exports.authorize = authorize;
|
|
exports.authenticate = authenticate;
|
|
exports.ghostAuth = ghostAuth;
|