logout google account when user sign out

This commit is contained in:
Xuan Sang LE
2018-03-04 12:35:19 +01:00
parent aeecaa4e81
commit b35096bcca
5 changed files with 36 additions and 11 deletions

View File

@ -72,12 +72,11 @@ self.OS.API.handler =
_API.post p, d, c, () ->
alert "Resource not found: #{p}"
logout: () ->
_API.handler.setting () ->
p = "#{_REST}/system/logout"
_API.post p, {}, (d) ->
_OS.boot()
, () ->
alert "Resource not found #{p}"
p = "#{_REST}/system/logout"
_API.post p, {}, (d) ->
_OS.boot()
, () ->
alert "Resource not found #{p}"
setting: (f) ->
p = "#{_REST}/system/settings"
_API.post p, _OS.setting, (d) ->