| Server IP : 85.214.143.32 / Your IP : 216.73.216.58 Web Server : nginx/1.24.0 System : Linux datensicherung.webdress.site 6.8.0-139-generic #139-Ubuntu SMP PREEMPT_DYNAMIC Sat Aug 1 03:52:05 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/nextcloud/dist/ |
Upload File : |
import{b,p as F,o as p,f as N,k as v,w as u,c as m,u as e,j as f,t as g,h as U,L as x,l,n as j,z,e as I}from"./Web-Bpn1hT4U.chunk.mjs";import{c as w,i as h}from"./index-D2R3-_i4.chunk.mjs";import{a as S,c as B,b as K}from"./index-68GQhqPi.chunk.mjs";import{l as R}from"./public-C1mLBHT3.chunk.mjs";import{t as r}from"./translation-DoG5ZELJ-BmllVdG7.chunk.mjs";import{b as k}from"./index-Cp0kcsps.chunk.mjs";import{N as V}from"./mdi-C6sl40Bq.chunk.mjs";import{N as C}from"./ContentCopy-Cce9YV9O.chunk.mjs";import"./PencilOutline-BzMMCVP9.chunk.mjs";import"./createElementId-DhjFt1I9-CzYhhUzc.chunk.mjs";import"./NcTextArea-Dxzj4zdb-C1jcF97K.chunk.mjs";import"./NcBreadcrumbs-B4eyDS9i-Di3uuiFW.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-BJuPH7S7-DQR03jLO.chunk.mjs";import{w as T}from"./NcModal-DiDvgcU8-DlAqoAw2.chunk.mjs";/* empty css */import"./NcAvatar-1KxMUN7V-Dr9OrZV_.chunk.mjs";import"./NcContent-BYh5hWDN-FTqm_nnc.chunk.mjs";import{N as q}from"./logger-D3RVzcfQ-B6R2fmjp.chunk.mjs";import"./TrashCanOutline-BTIe_2cO.chunk.mjs";import{N as L}from"./NcCheckboxRadioSwitch-DVdt5Hkq-BDEn8EyP.chunk.mjs";import"./Plus-CnLZI8rL.chunk.mjs";import"./index-CmQ6RK7u.chunk.mjs";import"./TrayArrowDown-BXmwzkXp.chunk.mjs";import"./index-SqBpzfCA.chunk.mjs";import"./index-DIjZjDEc.chunk.mjs";import"./index-B-O3WGfL.chunk.mjs";import"./NcEmojiPicker-UTxgju3f-C4HVb0jz.chunk.mjs";import"./NcEmptyContent-CGAPqk4S-C3yFtVXO.chunk.mjs";import"./index-0f4aIjP5.chunk.mjs";import{N as M,I as E,l as O}from"./types-amvqz0_1.chunk.mjs";/* empty css */import"./NcInputField-5Sg6EUP6-DsazvGgr.chunk.mjs";import{N as _}from"./NcPasswordField-BFyzHTOO-DLUAy5-a.chunk.mjs";import"./index-CQWytfr1.chunk.mjs";import"./NcTextField.vue_vue_type_script_setup_true_lang-Bx2esFU2-LotydYy2.chunk.mjs";import"./NcSelectTags-I2hJaNax-DKS2djKc.chunk.mjs";import"./NcUserBubble-BXR7vT0V-DNtJzjg-.chunk.mjs";import"./NcUserStatusIcon-BF5OEQFU-CcJDgcR0.chunk.mjs";import"./emoji-C8k9NUlo-BQiX-d8c.chunk.mjs";import"./colors-Cv9F-jWS-3J5iRBdf.chunk.mjs";import"./util-DBjHxD9z.chunk.mjs";import"./ArrowRight-BMXv3_tW.chunk.mjs";const Y=b({__name:"SettingsPersonalChangePrivateKey",props:{recoveryEnabledForUser:{type:Boolean}},emits:["updated"],setup(c,{emit:a}){const s=a,n=F("form"),t=l(!1),o=l(!1),i=l(""),y=l("");async function P(){if(!t.value){t.value=!0,o.value=!1;try{await w.post(k("/apps/encryption/ajax/updatePrivateKeyPassword"),{oldPassword:i.value,newPassword:y.value}),i.value=y.value="",n.value?.reset(),s("updated")}catch(d){h(d)&&d.response&&d.response.data?.data?.message&&S(d.response.data.data.message),o.value=!0}finally{t.value=!1}}}return(d,H)=>(p(),N("form",{ref:"form",onSubmit:x(P,["prevent"])},[v(e(M),{label:e(r)("encryption","Update private key password"),description:e(r)("encryption","Your private key password no longer matches your log-in password. Set your old private key password to your current log-in password.")},{default:u(()=>[c.recoveryEnabledForUser?(p(),m(e(V),{key:0},{default:u(()=>[f(g(e(r)("encryption","If you do not remember your old password you can ask your administrator to recover your files.")),1)]),_:1})):U("",!0),v(e(_),{label:e(r)("encryption","Old log-in password")},null,8,["label"]),v(e(_),{label:e(r)("encryption","Current log-in password")},null,8,["label"]),v(e(q),{type:"submit",variant:"primary"},{default:u(()=>[f(g(e(r)("encryption","Update")),1)]),_:1})]),_:1},8,["label","description"])],544))}}),A=b({__name:"SettingsPersonalEnableRecovery",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(c){const a=j(c,"modelValue"),s=l(!1);return z(a,()=>{s.value=!0}),T([a],async([n],[t])=>{if(n===t){s.value=!1;return}const o=B(r("encryption","Updating recovery keys. This can take some timeā¦"));try{await w.post(k("/apps/encryption/ajax/userSetRecovery"),{userEnableRecovery:a.value})}catch(i){a.value=t,h(i)&&i.response&&i.response.data?.data?.message&&S(i.response.data.data.message)}finally{o.hideToast(),s.value=!1}},{debounce:800}),(n,t)=>(p(),m(e(L),{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),type:"switch",loading:s.value,description:e(r)("encryption","Enabling this option will allow you to reobtain access to your encrypted files in case of password loss")},{default:u(()=>[f(g(e(r)("encryption","Enable password recovery")),1)]),_:1},8,["modelValue","loading","description"]))}}),D=b({__name:"SettingsPersonal",setup(c){const a=R("encryption","personalSettings"),s=l(a.initialized),n=l(a.recoveryEnabledForUser);async function t(){try{const{data:o}=await w.get(k("/apps/encryption/ajax/getStatus"));s.value=o.initStatus,o.data.message&&K(o.data.message)}catch(o){O.error("Failed to fetch current encryption status",{error:o})}}return(o,i)=>(p(),m(e(C),{name:e(r)("encryption","Basic encryption module")},{default:u(()=>[s.value===e(E).NotInitialized?(p(),m(e(V),{key:0,type:"warning"},{default:u(()=>[f(g(e(r)("encryption","Encryption app is enabled but your keys are not initialized, please log-out and log-in again")),1)]),_:1})):s.value===e(E).InitExecuted?(p(),m(Y,{key:1,recoveryEnabledForUser:n.value,onUpdated:t},null,8,["recoveryEnabledForUser"])):e(a).recoveryEnabled&&e(a).privateKeySet?(p(),m(A,{key:2,modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=y=>n.value=y)},null,8,["modelValue"])):U("",!0)]),_:1},8,["name"]))}}),G=I(D);G.mount("#encryption-settings-section");
//# sourceMappingURL=encryption-settings_personal.mjs.map