mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-27 08:31:20 +02:00
Cleanup login client
This commit is contained in:
parent
c62e587c85
commit
a862a91112
@ -46,9 +46,9 @@ class OctoClient {
|
||||
}
|
||||
|
||||
const responseJson = (await this.getJson(response)) as {token?: string}
|
||||
this.token = responseJson.token
|
||||
if (responseJson.token !== '') {
|
||||
localStorage.setItem('sessionId', this.token || '')
|
||||
this.token = responseJson.token || ''
|
||||
if (this.token) {
|
||||
localStorage.setItem('sessionId', this.token)
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user