fix(profile): 修改密码,同步修改casdoor密码
This commit is contained in:
1 parent
0bb1946b7e
commit
2d59be2f92
9 files changed
+485
-8
No files matched your search
@@ -746,8 +746,9 @@ const isProfileLoading = ref(false);
|
||||
const isProfileSaving = ref(false);
|
||||
const isProfileEditing = ref(false);
|
||||
const showPasswordModal = ref(false);
|
||||
|
||||
// TODO(casdoor): set true when Casdoor change-password is ready
|
||||
const CHANGE_PASSWORD_ENABLED = false;
|
||||
const CHANGE_PASSWORD_ENABLED = true;
|
||||
|
||||
const handleChangePasswordClick = () => {
|
||||
if (!CHANGE_PASSWORD_ENABLED) {
|
||||
@@ -2302,7 +2303,7 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Change password modal: re-enable via CHANGE_PASSWORD_ENABLED when Casdoor is ready -->
|
||||
<!-- Change password modal -->
|
||||
<div
|
||||
v-if="CHANGE_PASSWORD_ENABLED && showPasswordModal"
|
||||
class="dialog-overlay z-50 items-center"
|
||||
|
||||
Reference in new issue
Block a user