diff --git a/frontend/src/pages/settings/account.vue b/frontend/src/pages/settings/account.vue index ce6f54be8..127cb0bf3 100644 --- a/frontend/src/pages/settings/account.vue +++ b/frontend/src/pages/settings/account.vue @@ -43,9 +43,11 @@ v-model="confirmPassword" > - - + + Change Password vpn_key @@ -71,7 +73,7 @@ }, methods: { disabled() { - return (this.oldPassword === "" || this.newPassword === "" || (this.newPassword !== this.confirmPassword)); + return (this.busy || this.oldPassword === "" || this.newPassword === "" || (this.newPassword !== this.confirmPassword)); }, confirm() { this.busy = true; diff --git a/internal/entity/password.go b/internal/entity/password.go index 080dd0b25..766319831 100644 --- a/internal/entity/password.go +++ b/internal/entity/password.go @@ -3,7 +3,6 @@ package entity import ( "time" - "github.com/photoprism/photoprism/pkg/txt" "golang.org/x/crypto/bcrypt" ) @@ -68,8 +67,6 @@ func FindPassword(uid string) *Password { if err := Db().Where("uid = ?", uid).First(&result).Error; err == nil { return &result - } else { - log.Errorf("auth: no password for %s", txt.Quote(uid)) } return nil