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C,oBAAqB,CAAE8C,SAAAA,EAAAA,GAAUC,WAAWA,EAAAA,EAAAA,IAAU,SAIvCpC,G,UC1M2oB,I,eCO5pBtC,GAAY,OACd,EACAd,EACAQ,GACA,EACA,KACA,KACA,MAIF,QAAeM,EAAiB,O","sources":["webpack://ehro-admin/./src/components/utils/Footer.vue?b02e","webpack://ehro-admin/./src/components/utils/Footer.vue?efef","webpack://ehro-admin/./src/components/utils/Footer.vue?7b5a","webpack://ehro-admin/./src/components/utils/Footer.vue","webpack://ehro-admin/./src/views/pages/Login.vue?89df","webpack://ehro-admin/./src/views/pages/Login.vue?f21e","webpack://ehro-admin/./src/views/pages/Login.vue?1146","webpack://ehro-admin/./src/views/pages/Login.vue"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"align\":\"center\"}},[_c('small',[_vm._v(\" Powered with ♥ by EHRO \"),_c('br'),_vm._v(\" Event Human Resources Organizer \"),_c('a',{attrs:{\"href\":\"www.ehro.app\"}},[_vm._v(\"www.ehro.app\")])])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\n\n@Component\nexport default class Footer extends Vue {\n}\n","import mod from \"-!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/thread-loader/dist/cjs.js!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use[1]!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/thread-loader/dist/cjs.js!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use[1]!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Footer.vue?vue&type=template&id=65aabae8&\"\nimport script from \"./Footer.vue?vue&type=script&lang=ts&\"\nexport * from \"./Footer.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"animated fadeIn\",staticStyle:{\"padding-top\":\"60px\"}},[_c('b-container',[_c('b-row',{staticClass:\"justify-content-center text-center\"},[_c('b-col',[_c('h4',[_vm._v(\" Si vous êtes un volontaire, vous n'êtes probablement pas au bon endroit. \"),_c('br'),_vm._v(\" Cette page est reservée aux organisateurs.\"),_c('br'),_c('br')]),_c('hr')])],1),_c('b-row',{staticClass:\"justify-content-center text-center\"},[_c('b-col',{attrs:{\"md\":\"8\"}},[_c('h1',{staticStyle:{\"color\":\"var(--ehro-red-800)\"}},[_vm._v(\"Accès organisateur\")]),_c('h4',[_vm._v(\"Si vous êtes organisateur d'une manifestation !\")]),_c('br'),_c('br')])],1),_c('b-row',{staticClass:\"justify-content-center\"},[(_vm.forceCreate2FA)?[_c('b-card',{staticClass:\"p-4\",attrs:{\"no-body\":\"\"}},[_c('b-card-body',[_c('h1',[_vm._v(\"Double authentification\")]),_c('p',[_vm._v(\" Dans un soucis de sécurité, nous vous demandons dorénavant d'activer un système d'authentification à deux facteurs. \")]),_c('br'),_c('DualAuthSetup',{attrs:{\"currentActiveMethods\":[]},on:{\"dfaAdded\":_vm.loginDone}})],1)],1)]:(_vm.currentUserDevices.length > 0)?[_c('b-col',{attrs:{\"md\":\"8\"}},[_c('b-card-group',[(_vm.step === 1)?_c('b-card',{staticClass:\"p-4\",attrs:{\"no-body\":\"\"}},[_c('b-card-body',[_c('h1',[_vm._v(_vm._s(_vm.$t(\"devices_title\")))]),_c('p',{staticClass:\"text-muted\"},[_vm._v(\" Choisissez votre méthode d'authentification \")]),_c('DualAuthList',{attrs:{\"currentActiveMethods\":_vm.currentUserDevices,\"showDelete\":false},on:{\"click\":_vm.usedevice}})],1)],1):_vm._e(),(_vm.step === 2)?_c('b-card',{staticClass:\"p-4\",attrs:{\"no-body\":\"\"}},[_c('b-alert',{attrs:{\"show\":_vm.error !== null,\"variant\":\"danger\"}},[_vm._v(\" \"+_vm._s(_vm.error)+\" \")]),_c('b-form',{attrs:{\"novalidate\":\"\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.validate.apply(null, arguments)}}},[_c('b-button',{on:{\"click\":function($event){return _vm.reset()}}},[_vm._v(\" ← \")]),_c('br'),_c('br'),(_vm.device.method === 'email device')?[_c('br'),_c('h2',[_vm._v(_vm._s(_vm.$t(\"devices_email\")))]),_c('p',{domProps:{\"innerHTML\":_vm._s(\n _vm.$tc('devices_email_setup', 1, {\n currentEmail: _vm.email,\n })\n )}})]:(_vm.device.method === 'static device')?[_c('br'),_c('h2',[_vm._v(_vm._s(_vm.$t(\"devices_backup\")))]),_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.$t('devices_use_backup'))}})]:(_vm.device.method === 'TOTP device')?[_c('br'),_c('h2',[_vm._v(_vm._s(_vm.$t(\"devices_qrcode\")))])]:_vm._e(),_c('b-input-group',[_c('b-input-group-prepend',[_c('b-input-group-text',[_vm._v(\" \"+_vm._s(_vm.$t(\"devices_code\"))+\" \")])],1),_c('b-form-input',{attrs:{\"id\":\"title-input\",\"autocomplete\":\"off\",\"type\":\"text\",\"autofocus\":\"\",\"state\":!_vm.$v.code.validationChallenge.$invalid},model:{value:(_vm.$v.code.validationChallenge.$model),callback:function ($$v) {_vm.$set(_vm.$v.code.validationChallenge, \"$model\", $$v)},expression:\"$v.code.validationChallenge.$model\"}})],1),_c('br'),_c('b-btn',{attrs:{\"variant\":!_vm.$v.$invalid ? 'primary' : 'danger',\"disabled\":_vm.$v.code.$invalid},on:{\"click\":function($event){return _vm.validate()}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"valid\"))+\" \")])],2)],1):_vm._e()],1)],1)]:[_c('b-col',{attrs:{\"md\":\"8\"}},[_c('b-overlay',{attrs:{\"show\":_vm.loading,\"rounded\":\"sm\"}},[_c('b-card',{staticClass:\"p-4\",attrs:{\"no-body\":\"\"}},[_c('b-card-body',[_c('b-alert',{attrs:{\"show\":_vm.error !== null,\"variant\":\"danger\"}},[_vm._v(\" \"+_vm._s(_vm.error)+\" \")]),_c('b-form',{attrs:{\"novalidate\":\"\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit.apply(null, arguments)}}},[_c('h1',[_vm._v(\"Se connecter\")]),_c('p',{staticClass:\"text-muted\"},[_vm._v(\" Connectez-vous pour accéder aux outils \")]),_c('b-input-group',{staticClass:\"mb-3\"},[_c('b-input-group-prepend',[_c('b-input-group-text',[_c('i',{staticClass:\"icon-user\"})])],1),_c('b-form-input',{staticClass:\"form-control\",attrs:{\"type\":\"email\",\"autofocus\":\"\",\"placeholder\":\"Nom d'utilisateur\",\"autocomplete\":\"username email\"},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}})],1),_c('b-input-group',{staticClass:\"mb-4\"},[_c('b-input-group-prepend',[_c('b-input-group-text',[_c('i',{staticClass:\"icon-lock\"})])],1),_c('b-form-input',{staticClass:\"form-control\",attrs:{\"type\":\"password\",\"placeholder\":\"Mot de passe\",\"autocomplete\":\"current-password\"},model:{value:(_vm.password),callback:function ($$v) {_vm.password=$$v},expression:\"password\"}})],1),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"6\"}},[_c('b-button',{staticClass:\"px-4\",attrs:{\"type\":\"submit\",\"variant\":\"primary\"}},[_vm._v(\" Login \")])],1),_c('b-col',{staticClass:\"text-right\",attrs:{\"cols\":\"6\"}},[_c('b-button',{staticClass:\"px-0\",attrs:{\"variant\":\"link\",\"to\":\"/account/reset-password\"}},[_vm._v(\" Mot de passe oublié ? \")])],1)],1)],1)],1)],1)],1)],1)]],2),_c('br'),_c('Footer')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Watch } from 'vue-property-decorator';\nimport { AuthenticationService } from '@/services';\nimport DualAuthSetup from '@/components/user/DualAuthSetup.vue';\nimport DualAuthList from '@/components/user/DualAuthList.vue';\nimport { UserModel } from '@/models/UserModel';\nimport { RawLocation, Route } from 'vue-router';\nimport { VueRouter } from 'vue-router/types/router';\nimport { required, minLength, maxLength } from 'vuelidate/lib/validators';\nimport Footer from '@/components/utils/Footer.vue';\n\n@Component({\n components: {\n Footer,\n DualAuthSetup,\n DualAuthList,\n },\n validations: {\n code: {\n validationChallenge: { required, minLength: minLength(6) },\n },\n },\n})\nexport default class Login extends Vue {\n private email = '';\n\n private password = '';\n private loading = false;\n private forceCreate2FA = false;\n private step = 1;\n private device: any = {};\n private currentUserDevices = [];\n private code = {\n validationChallenge: '',\n };\n\n\n private error: string | null = null;\n\n\n private reset() {\n this.step = 1;\n }\n\n private usedevice(device: any) {\n this.loading = true;\n this.device = device;\n if (device.needsChallenge) {\n AuthenticationService.instance.challenge(device.id).then((response: any) => {\n setTimeout(() => {\n this.loading = false;\n this.step++;\n }, 1000);\n });\n } else {\n this.loading = false;\n this.step++;\n }\n }\n\n private onSubmit() {\n this.loading = true;\n AuthenticationService.instance.login(this.email, this.password).then((user: UserModel) => {\n AuthenticationService.instance.getDevicesList().then((response: any) => {\n if (response.length === 0) {\n if (user.currentOrganization && user.currentOrganization.enforce2fa) {\n this.forceCreate2FA = true;\n this.loading = false;\n } else {\n this.loginDone();\n }\n } else {\n this.currentUserDevices = response;\n this.loading = false;\n }\n });\n }, (error: any) => {\n this.loading = false;\n this.error = error.response.data.nonFieldErrors[0];\n });\n }\n\n private loginDone() {\n if (this.$route.query.redirect !== undefined && typeof this.$route.query.redirect === 'string') {\n window.location.href = this.$router.resolve(this.$route.query.redirect).href;\n } else {\n window.location.href = this.$router.resolve({ name: 'dashboard' }).href;\n }\n }\n\n private askAccount() {\n window.location.href = `https://ehro.app/contact/`;\n }\n\n private validate() {\n this.loading = true;\n AuthenticationService.instance.verifyChallenge(\n this.device.id,\n this.code.validationChallenge).then((response: any) => {\n if (AuthenticationService.instance.authenticatedUser) {\n AuthenticationService.instance.authenticatedUser.dfaId = this.device.id;\n AuthenticationService.instance.updateUser(AuthenticationService.instance.authenticatedUser);\n }\n this.loginDone();\n }).catch((error: any) => {\n this.loading = false;\n this.error = error.response.data.nonFieldErrors[0];\n });\n }\n}\n\n","import mod from \"-!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/thread-loader/dist/cjs.js!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use[1]!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/thread-loader/dist/cjs.js!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use[1]!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=f8edea9e&\"\nimport script from \"./Login.vue?vue&type=script&lang=ts&\"\nexport * from \"./Login.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../nix/store/4gqm246hzdfzp7056w08y59vnj1ww375-node-dependencies-ehro-admin-4.5.2/lib/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_h","$createElement","_self","_c","_m","staticRenderFns","attrs","_v","Footer","Vue","Component","component","staticClass","staticStyle","on","loginDone","currentUserDevices","length","step","_s","$t","usedevice","_e","error","$event","preventDefault","validate","apply","arguments","reset","device","method","domProps","$tc","currentEmail","email","$v","code","validationChallenge","$invalid","model","value","callback","$$v","$set","expression","loading","onSubmit","password","Login","needsChallenge","AuthenticationService","instance","challenge","id","then","response","setTimeout","login","user","getDevicesList","currentOrganization","enforce2fa","forceCreate2FA","data","nonFieldErrors","undefined","$route","query","redirect","window","location","href","$router","resolve","name","verifyChallenge","authenticatedUser","dfaId","updateUser","components","DualAuthSetup","DualAuthList","validations","required","minLength"],"sourceRoot":""}