Skip to content

Commit dfd0225

Browse files
committed
UI: Logout before login
1 parent 2f2d6cb commit dfd0225

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ui/src/api/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export function api (command, args = {}, method = 'GET', data = {}) {
4343
export function login (arg) {
4444
sourceToken.init()
4545

46+
// Logout before login is called to purge any duplicate sessionkey cookies
47+
api('logout')
48+
4649
const params = new URLSearchParams()
4750
params.append('command', 'login')
4851
params.append('username', arg.username || arg.email)

0 commit comments

Comments
 (0)