diff options
author | xuegao <xg353y@intl.att.com> | 2020-06-03 16:18:03 +0200 |
---|---|---|
committer | Xue Gao <xg353y@intl.att.com> | 2020-06-04 10:48:20 +0000 |
commit | 715746fbd2bcb18193138d56df50b0d44da2681b (patch) | |
tree | ab533c51a966681f61fc29974e6cdd034d003bc6 /ui-react/src/api | |
parent | 76aba9965ffb62bc59f9c95ba61811448010f2cf (diff) |
Remove logout
Remove the logout option from UI.
Issue-ID: CLAMP-860
Change-Id: I711b8a7eaf523195f0534044efd3dd74c3f1e0be
Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/api')
-rw-r--r-- | ui-react/src/api/UserService.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/ui-react/src/api/UserService.js b/ui-react/src/api/UserService.js index 5703fdcc7..477ca4269 100644 --- a/ui-react/src/api/UserService.js +++ b/ui-react/src/api/UserService.js @@ -47,31 +47,6 @@ export default class UserService { return UserService.notLoggedUserName; }); } - - static logout() { - return fetch('/restservices/clds/v1/user/logout', { - method: 'POST', - credentials: 'same-origin' - }) - .then(function (response) { - console.debug("logout response received, status code:", response.status); - if (response.ok) { - return response.text(); - } else { - console.error("logout response is nok"); - return UserService.notLoggedUserName; - } - }) - .then(function (data) { - console.info ("User disconnected:",data) - return data; - }) - .catch(function(error) { - console.warn("logout error received, user set to: ",UserService.notLoggedUserName); - console.error("logout error:",error); - return UserService.notLoggedUserName; - }); - } static getUserInfo() { return fetch('/restservices/clds/v2/clampInformation', { |