Redirect logouts to /hoc always for now

Generic solution to replace commit 77a8347.
Will have all redirects go to / once HoC is over.
This commit is contained in:
Scott Erickson 2015-12-10 12:25:24 -08:00
parent 0c34d06e70
commit 7e24cda7f8

View file

@ -51,10 +51,7 @@ module.exports.loginUser = (userObject, failure=genericFailure, nextURL=null) ->
module.exports.logoutUser = ->
FB?.logout?()
callback = ->
if (window.location.href.indexOf("/account/settings") > -1)
window.location = '/'
else
window.location.reload()
window.location = '/hoc'
res = $.post('/auth/logout', {}, callback)
res.fail(genericFailure)