Fix: "Set Password" button on profile page is not active (#1486)

* Fix disabled button for "Add password"

* Fix lint error

---------

Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
Mysterious_Dev 2023-12-27 19:28:29 +01:00 committed by GitHub
parent d19dbbfe7e
commit e754f6c234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,8 +119,8 @@
type="button"
class="iconified-button brand-button"
:disabled="
newPassword.length === 0 ||
oldPassword.length === 0 ||
newPassword.length == 0 ||
(auth.user.has_password && oldPassword.length == 0) ||
newPassword !== confirmNewPassword
"
@click="savePassword"