mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-31 15:19:34 +02:00
Fix password login to send empty string instead of null to support passwordless root user login
This commit is contained in:
parent
2bfe548c52
commit
5c60cd136c
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ export default {
|
|||
})
|
||||
},
|
||||
requestServerLogin() {
|
||||
return this.postRequest(`${this.serverConfig.address}/login`, { username: this.serverConfig.username, password: this.password }, this.serverConfig.customHeaders, 20000)
|
||||
return this.postRequest(`${this.serverConfig.address}/login`, { username: this.serverConfig.username, password: this.password || '' }, this.serverConfig.customHeaders, 20000)
|
||||
.then((data) => {
|
||||
if (!data.user) {
|
||||
console.error(data.error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue