login username password.

This commit is contained in:
Miroslav Šedivý 2021-03-14 00:32:23 +01:00
parent 85c4f4371d
commit 4230eb3e07

View File

@ -197,12 +197,12 @@
}
}
public async login(id: string, secret: string) {
public async login(username: string, password: string) {
if (this.authenticated) {
throw new Error('client already authenticated')
}
await this.api.session.login({ id, secret })
await this.api.session.login({ username, password })
Vue.set(this.state.connection, 'authenticated', true)
this.websocket.connect()
}