mirror of https://github.com/apache/cloudstack.git
ui: Logout before login (#6193)
This PR calls the logout API before login, to cleanup any duplicate sessionkey, as it was done on the legacy UI: #4326 Fixes: #6127
This commit is contained in:
parent
ca8782b703
commit
4193109c1d
|
|
@ -43,6 +43,9 @@ export function api (command, args = {}, method = 'GET', data = {}) {
|
|||
export function login (arg) {
|
||||
sourceToken.init()
|
||||
|
||||
// Logout before login is called to purge any duplicate sessionkey cookies
|
||||
api('logout')
|
||||
|
||||
const params = new URLSearchParams()
|
||||
params.append('command', 'login')
|
||||
params.append('username', arg.username || arg.email)
|
||||
|
|
|
|||
Loading…
Reference in New Issue