mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
parent
f6c438475b
commit
dcca1aae5a
1 changed files with 7 additions and 1 deletions
|
@ -69,6 +69,7 @@ _private.updateClient = function updateClient(options) {
|
|||
description: clientDescription
|
||||
}).then(function registeredRemoteClient(credentials) {
|
||||
debug('Registered remote client: ' + JSON.stringify(credentials));
|
||||
logging.info('Registered remote client successfully.');
|
||||
|
||||
return models.Client.add({
|
||||
name: credentials.name,
|
||||
|
@ -123,6 +124,8 @@ _private.updateClient = function updateClient(options) {
|
|||
|
||||
return client.save(null, {context: {internal: true}});
|
||||
}).then(function updatedLocalClient() {
|
||||
logging.info('Updated remote client successfully.');
|
||||
|
||||
return {
|
||||
client_id: client.get('uuid'),
|
||||
client_secret: client.get('secret')
|
||||
|
@ -156,7 +159,10 @@ exports.init = function initPassport(options) {
|
|||
redirectUri: redirectUri,
|
||||
blogUri: clientUri,
|
||||
url: ghostAuthUrl,
|
||||
passReqToCallback: true
|
||||
passReqToCallback: true,
|
||||
retryHook: function retryHook(err) {
|
||||
logging.error(err);
|
||||
}
|
||||
}, authStrategies.ghostStrategy);
|
||||
|
||||
_private.updateClient({
|
||||
|
|
Loading…
Add table
Reference in a new issue