mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
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:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user