Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ui/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down