mirror of https://github.com/node-red/node-red.git
Merge branch 'master' into 0.18
commit
3988a648d6
|
@ -87,9 +87,11 @@ function login(req,res) {
|
||||||
"prompts":[{id:"username",type:"text",label:"user.username"},{id:"password",type:"password",label:"user.password"}]
|
"prompts":[{id:"username",type:"text",label:"user.username"},{id:"password",type:"password",label:"user.password"}]
|
||||||
}
|
}
|
||||||
} else if (settings.adminAuth.type === "strategy") {
|
} else if (settings.adminAuth.type === "strategy") {
|
||||||
|
|
||||||
|
var urlPrefix = (settings.httpAdminRoot==='/')?"":settings.httpAdminRoot;
|
||||||
response = {
|
response = {
|
||||||
"type":"strategy",
|
"type":"strategy",
|
||||||
"prompts":[{type:"button",label:settings.adminAuth.strategy.label, url: settings.httpAdminRoot + "auth/strategy"}]
|
"prompts":[{type:"button",label:settings.adminAuth.strategy.label, url: urlPrefix + "auth/strategy"}]
|
||||||
}
|
}
|
||||||
if (settings.adminAuth.strategy.icon) {
|
if (settings.adminAuth.strategy.icon) {
|
||||||
response.prompts[0].icon = settings.adminAuth.strategy.icon;
|
response.prompts[0].icon = settings.adminAuth.strategy.icon;
|
||||||
|
|
Loading…
Reference in New Issue