mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 12:44:57 +03:00
Update authentication endpoint for subdirectory
Fixes bug where user is unable to log into admin when subdirectory is specified
This commit is contained in:
parent
957b1566de
commit
8393ba727b
@ -1,3 +1,7 @@
|
|||||||
|
import ghostPaths from 'ghost/utils/ghost-paths';
|
||||||
|
|
||||||
|
var Ghost = ghostPaths();
|
||||||
|
|
||||||
var AuthenticationInitializer = {
|
var AuthenticationInitializer = {
|
||||||
|
|
||||||
name: 'authentication',
|
name: 'authentication',
|
||||||
@ -17,7 +21,7 @@ var AuthenticationInitializer = {
|
|||||||
}.property()
|
}.property()
|
||||||
});
|
});
|
||||||
SimpleAuth.Authenticators.OAuth2.reopen({
|
SimpleAuth.Authenticators.OAuth2.reopen({
|
||||||
serverTokenEndpoint: '/ghost/api/v0.1/authentication/token',
|
serverTokenEndpoint: Ghost.apiRoot + '/authentication/token',
|
||||||
refreshAccessTokens: true,
|
refreshAccessTokens: true,
|
||||||
makeRequest: function (url, data) {
|
makeRequest: function (url, data) {
|
||||||
data.client_id = 'ghost-admin';
|
data.client_id = 'ghost-admin';
|
||||||
|
Loading…
Reference in New Issue
Block a user