mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Clarify code 400 return in edge case where there's no default portal redirection
This commit is contained in:
parent
e877b2ee85
commit
b2fe0da547
1 changed files with 2 additions and 2 deletions
|
@ -343,9 +343,9 @@ else
|
||||||
end
|
end
|
||||||
if portal_domain == nil then
|
if portal_domain == nil then
|
||||||
ngx.header['Content-Type'] = "text/html"
|
ngx.header['Content-Type'] = "text/html"
|
||||||
ngx.status = 400
|
ngx.status = ngx.HTTP_BAD_REQUEST
|
||||||
ngx.say("Unmanaged domain")
|
ngx.say("Unmanaged domain")
|
||||||
return ngx.exit(200)
|
return ngx.exit()
|
||||||
end
|
end
|
||||||
|
|
||||||
portal_url = "https://" .. portal_domain
|
portal_url = "https://" .. portal_domain
|
||||||
|
|
Loading…
Reference in a new issue