mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
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:
parent
0c34d06e70
commit
7e24cda7f8
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue