From a161c634a26d243827b0dac1a9d9a6b7d0d0741c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Fri, 12 Apr 2024 02:12:15 -0300 Subject: [PATCH 1/2] feat: able to change password when sign Signed-off-by: Vitor Mattos --- src/views/Account/Account.vue | 171 +++------------- src/views/Account/partials/ManagePassword.vue | 132 +++++++++++++ src/views/Account/partials/UserImage.vue | 1 + src/views/CreatePassword.vue | 47 ++--- src/views/ReadCertificate.vue | 183 +++++++++--------- src/views/ResetPassword.vue | 61 +++--- src/views/SignPDF/_partials/Sign.vue | 91 +++++---- 7 files changed, 346 insertions(+), 340 deletions(-) create mode 100644 src/views/Account/partials/ManagePassword.vue diff --git a/src/views/Account/Account.vue b/src/views/Account/Account.vue index 40e04cfc7d..328d8d6583 100644 --- a/src/views/Account/Account.vue +++ b/src/views/Account/Account.vue @@ -1,183 +1,62 @@ - diff --git a/src/views/Account/partials/UserImage.vue b/src/views/Account/partials/UserImage.vue index 53ee6dfc99..d7b830b8eb 100644 --- a/src/views/Account/partials/UserImage.vue +++ b/src/views/Account/partials/UserImage.vue @@ -32,6 +32,7 @@ export default { diff --git a/src/views/Account/partials/ManagePassword.vue b/src/views/Account/partials/ManagePassword.vue index e0fc6b27ce..e89e0e8390 100644 --- a/src/views/Account/partials/ManagePassword.vue +++ b/src/views/Account/partials/ManagePassword.vue @@ -76,6 +76,7 @@ export default { }, setup() { const signMethodsStore = useSignMethodsStore() + signMethodsStore.setHasSignatureFile(loadState('libresign', 'config', {})?.hasSignatureFile ?? false) return { signMethodsStore } }, data() { diff --git a/src/views/CreatePassword.vue b/src/views/CreatePassword.vue index cf04802e1e..627b7e3634 100644 --- a/src/views/CreatePassword.vue +++ b/src/views/CreatePassword.vue @@ -73,36 +73,3 @@ export default { }, } - diff --git a/src/views/ResetPassword.vue b/src/views/ResetPassword.vue index fc85a0ddf6..ac83745186 100644 --- a/src/views/ResetPassword.vue +++ b/src/views/ResetPassword.vue @@ -19,11 +19,14 @@ @@ -31,6 +34,7 @@