UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.4 kB
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./core-legacy-VD8c7QJ-.js","./users.store-legacy-azRUgFdP.js","./settings.store-legacy-I6rZOvfF.js","./AuthView-legacy-Wj84asB_.js"],(function(e,t){var s,o,a,n,r,i,l,d,u,f;return{setters:[function(e){s=e.$,o=e.Ft,a=e.N,n=e.S,r=e.w},function(e){i=e.at},function(e){l=e.Pn,d=e.t},function(e){u=e.t},function(e){f=e.t}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(c=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="3a245d95-8f8e-4fc1-b66b-74ec8d2db85c",t._sentryDebugIdIdentifier="sentry-dbid-3a245d95-8f8e-4fc1-b66b-74ec8d2db85c")}catch(t){}var t,c;e("default",a({__name:"ForgotMyPasswordView",setup(e){const t=u(),a=d(),c=l(),g=i(),b=o(!1),m=n((()=>{const e=[{name:"email",properties:{label:g.baseText("auth.email"),type:"email",required:!0,validationRules:[{name:"VALID_EMAIL"}],autocomplete:"email",capitalize:!0,focusInitially:!0}}],s=[{name:"no-smtp-warning",properties:{label:g.baseText("forgotPassword.noSMTPToSendEmailWarning"),type:"info"}}],o={title:g.baseText("forgotPassword.recoverPassword"),redirectText:g.baseText("forgotPassword.returnToSignIn"),redirectLink:"/signin"};return t.isSmtpSetup?{...o,buttonText:g.baseText("forgotPassword.getRecoveryLink"),inputs:e}:{...o,inputs:s}})),y=async e=>{if((e=>"email"in e)(e)){try{b.value=!0,await a.sendForgotPasswordEmail(e),c.showMessage({type:"success",title:g.baseText("forgotPassword.recoveryEmailSent"),message:g.baseText("forgotPassword.emailSentIfExists",{interpolate:{email:e.email}})})}catch(t){let e=g.baseText("forgotPassword.smtpErrorContactAdministrator");if(t.httpStatusCode){const{httpStatusCode:s}=t;429===s?e=g.baseText("forgotPassword.tooManyRequests"):422===t.httpStatusCode&&(e=g.baseText(t.message)),c.showMessage({type:"error",title:g.baseText("forgotPassword.sendingEmailError"),message:e})}}b.value=!1}};return(e,t)=>(s(),r(f,{form:m.value,"form-loading":b.value,onSubmit:y},null,8,["form","form-loading"]))}}))}}})); //# sourceMappingURL=ForgotMyPasswordView-legacy-BzgW9IVm.js.map