FEATURE: add plain text password toggle to settings (#22)

* FEATURE: add plain text password toggle to settings

* clean up state types, lint, and add migrate

Co-authored-by: austinried <4966622+austinried@users.noreply.github.com>
This commit is contained in:
Theo Salzmann
2021-12-03 07:18:05 +01:00
committed by GitHub
parent 37214fcbdc
commit 9a6f8b86fc
6 changed files with 101 additions and 15 deletions

View File

@@ -64,8 +64,14 @@ export class SubsonicApiClient {
this.params = new URLSearchParams()
this.params.append('u', server.username)
this.params.append('t', server.token)
this.params.append('s', server.salt)
if (server.usePlainPassword) {
this.params.append('p', server.plainPassword)
} else {
this.params.append('t', server.token)
this.params.append('s', server.salt)
}
this.params.append('v', '1.15.0')
this.params.append('c', 'subtracks')
}