mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 07:27:17 +02:00
make sure password setting is set before checking length
This commit is contained in:
parent
b758acb7d8
commit
aad98cc25d
1 changed files with 1 additions and 1 deletions
|
@ -870,7 +870,7 @@ function saveSettings() {
|
||||||
// check if we've set the basic http password - if so convert it to base64
|
// check if we've set the basic http password - if so convert it to base64
|
||||||
if (formJSON["security"]) {
|
if (formJSON["security"]) {
|
||||||
var password = formJSON["security"]["http_password"];
|
var password = formJSON["security"]["http_password"];
|
||||||
if (password.length > 0) {
|
if (password && password.length > 0) {
|
||||||
formJSON["security"]["http_password"] = sha256_digest(password);
|
formJSON["security"]["http_password"] = sha256_digest(password);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue