a fix for issue 6

main problem appears to be the list of supported auths `ids` was mistakenly being used when building the owner file

also a fix for login button still using Persona after an alternative has been added
This commit is contained in:
Paul Rodwell
2016-11-21 12:36:43 +00:00
parent 25c73d824b
commit ebf725807f
2 changed files with 16 additions and 4 deletions

View File

@ -105,7 +105,19 @@ update_footer = (ownerName, isAuthenticated) ->
if response.ok
console.log 'Alternative Identity added', response
settings.usingPersona = false
update_footer ownerName, isAuthenticated
if settings.wikiHost
dialogHost = settings.wikiHost
else
dialogHost = window.location.hostname
settings.cookieDomain = dialogHost
if settings.useHttps
dialogProtocol = 'https:'
else
dialogProtocol = window.location.protocol
if window.location.port
dialogHost = dialogHost + ':' + window.location.port
settings.dialogURL = dialogProtocol + '//' + dialogHost + '/auth/loginDialog'
update_footer ownerName, isAuthenticated
else
console.log 'Attempt to claim site failed', response
)