@bilfenyazilimekibi/bilpack 1.3.28 → 1.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -467,7 +467,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
467
467
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
468
468
 
469
469
  "use strict";
470
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginResetPasswordForm.vue */ \"./src/components/bf-login/LoginResetPasswordForm.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"login\",\n components: {\n LoginResetPasswordForm: _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n },\n head: {\n title: \"Giriş Yap\"\n },\n computed: {\n isResetPasswordMode() {\n return !!this.$route?.query?.token;\n },\n resetPasswordToken() {\n return this.$route?.query?.token || \"\";\n },\n },\n data() {\n return {\n submitBtnLoader: false,\n forgetBtnLoader: false,\n isForgottenPassword: false,\n errorTitle: \"Girmiş olduğunuz bilgiler hatalı\",\n showPassword: false,\n errorLogin: false,\n errorText: '',\n errorIcon: '',\n generalSettings: {},\n valid: false,\n data: '',\n tcRules: [\n v => !!v || 'Tc zorunludur',\n v => v.length <= 11 || 'Maksimum 11 karakter alabilir',\n v => v.length >= 11 || 'Minimum 11 karakter olmalıdır',\n ],\n passwordRules: [\n v => !!v || 'Şifre zorunludur',\n v => v.length >= 4 || 'En az 4 karakter alabilir.',\n ],\n form: {\n tc: '',\n password: '',\n eMail: '',\n }\n }\n },\n created() {\n const self = this;\n self.$setPlatform();\n self.generalSettings = self.initGeneralSettings()\n },\n methods: {\n initGeneralSettings() {\n const self = this;\n try {\n const {logo, bilfenLogo, banners} = self.$bilpack.settings.images.login\n return {logo, bilfenLogo, banners}\n } catch (e) {\n console.error('login page images are not defined [logo, bilfenLogo, banners]')\n return {\n logo: '',\n bilfenLogo: '',\n banners: ''\n }\n }\n },\n async resetPassword() {\n\n const forgetBaseUrl = this.$bilpack.env.bilapps.replace('bilapp', 'bildash')\n const link = window.location.href\n\n this.forgetBtnLoader = true\n this.$axios.post(`${forgetBaseUrl}/forget`, {email: this.form.eMail, link})\n .then(res => {\n this.forgetBtnLoader = false\n if (res.data.status && res.data.data.data !== null) {\n this.isForgottenPassword = false\n this.$store.dispatch('openSnackbar', {\n type: 'success',\n title: 'İşlem başarılı'\n })\n } else {\n console.log('message', res.data.message)\n this.$store.dispatch('openSnackbar', {\n type: 'danger',\n title: res.data.message\n })\n }\n })\n .catch(err => {\n this.forgetBtnLoader = false\n this.$store.dispatch('openSnackbar', {\n type: 'error',\n title: err\n })\n })\n\n },\n submit() {\n if (this.valid) {\n this.submitBtnLoader = true\n this.$auth.loginWith('local', {data: this.form})\n .then((res) => {\n this.submitBtnLoader = false\n const loginData = res.data\n if (loginData.status) {\n const currentPlatform = this.$getPlatform();\n const userPlatform = this.$auth.user.corporationName.toLocaleLowerCase('tr-TR')\n\n if (userPlatform !== currentPlatform) {\n // this.redirectToPlatform(userPlatform);\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n } else {\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n }\n this.$emit('complete')\n } else {\n this.errorText = loginData.message ? loginData.message : 'Bilgileriniz uyuşmuyor.'\n if (loginData.errorHeader) {\n this.errorTitle = loginData.errorHeader\n }\n this.errorLogin = true\n this.$emit('inComplete')\n // this.data = res.data\n // this.$swal('Giriş yapılamadı!', res.data.message, 'error')\n }\n })\n .catch(err => {\n this.submitBtnLoader = false\n this.errorText = 'Bilgileriniz uyuşmuyor.'\n this.errorLogin = true\n this.$emit('inComplete')\n // this.$swal('Giriş yapılamadı!', 'Kullanıcı bulunamadı. Giriş bilgilerinizi kontrol ediniz.', 'error')\n })\n }\n },\n // async redirectToPlatform(userPlatform) {\n // await this.$auth.logout();\n //\n // const locations = {\n // bilnet: 'https://bilems.bilnetokullari.com/login',\n // bilfen: 'https://bilems.bilfen.com/login'\n // }\n //\n // console.log('locate to ', locations[userPlatform])\n //\n // // todo active this on production\n // window.location.href = locations[userPlatform]\n // },\n }\n});\n\n\n//# sourceURL=webpack://@bilfenyazilimekibi/bilpack/./src/components/bf-login/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
470
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginResetPasswordForm.vue */ \"./src/components/bf-login/LoginResetPasswordForm.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"login\",\n components: {\n LoginResetPasswordForm: _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n },\n head: {\n title: \"Giriş Yap\"\n },\n computed: {\n isResetPasswordMode() {\n return !!this.$route?.query?.token;\n },\n resetPasswordToken() {\n return this.$route?.query?.token || \"\";\n },\n },\n data() {\n return {\n submitBtnLoader: false,\n forgetBtnLoader: false,\n isForgottenPassword: false,\n errorTitle: \"Girmiş olduğunuz bilgiler hatalı\",\n showPassword: false,\n errorLogin: false,\n errorText: '',\n errorIcon: '',\n generalSettings: {},\n valid: false,\n data: '',\n tcRules: [\n v => !!v || 'Tc zorunludur',\n v => v.length <= 11 || 'Maksimum 11 karakter alabilir',\n v => v.length >= 11 || 'Minimum 11 karakter olmalıdır',\n ],\n passwordRules: [\n v => !!v || 'Şifre zorunludur',\n v => v.length >= 4 || 'En az 4 karakter alabilir.',\n ],\n form: {\n tc: '',\n password: '',\n eMail: '',\n }\n }\n },\n created() {\n const self = this;\n self.$setPlatform();\n self.generalSettings = self.initGeneralSettings()\n },\n methods: {\n initGeneralSettings() {\n const self = this;\n try {\n const {logo, bilfenLogo, banners} = self.$bilpack.settings.images.login\n return {logo, bilfenLogo, banners}\n } catch (e) {\n console.error('login page images are not defined [logo, bilfenLogo, banners]')\n return {\n logo: '',\n bilfenLogo: '',\n banners: ''\n }\n }\n },\n async resetPassword() {\n\n const forgetBaseUrl = this.$bilpack.env.bilapps.replace('bilapp', 'bildash')\n const link = window.location.href\n\n this.forgetBtnLoader = true\n this.$axios.post(`${forgetBaseUrl}/forget`, {email: this.form.eMail, link})\n .then(res => {\n this.forgetBtnLoader = false\n if (res.data.status && res.data.data.data !== null) {\n this.isForgottenPassword = false\n this.$store.dispatch('openSnackbar', {\n type: 'success',\n title: res.data.message\n })\n } else {\n this.$store.dispatch('openSnackbar', {\n type: 'danger',\n title: res.data.message\n })\n }\n })\n .catch(err => {\n this.forgetBtnLoader = false\n this.$store.dispatch('openSnackbar', {\n type: 'error',\n title: err\n })\n })\n\n },\n submit() {\n if (this.valid) {\n this.submitBtnLoader = true\n this.$auth.loginWith('local', {data: this.form})\n .then((res) => {\n this.submitBtnLoader = false\n const loginData = res.data\n if (loginData.status) {\n const currentPlatform = this.$getPlatform();\n const userPlatform = this.$auth.user.corporationName.toLocaleLowerCase('tr-TR')\n\n if (userPlatform !== currentPlatform) {\n // this.redirectToPlatform(userPlatform);\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n } else {\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n }\n this.$emit('complete')\n } else {\n this.errorText = loginData.message ? loginData.message : 'Bilgileriniz uyuşmuyor.'\n if (loginData.errorHeader) {\n this.errorTitle = loginData.errorHeader\n }\n this.errorLogin = true\n this.$emit('inComplete')\n // this.data = res.data\n // this.$swal('Giriş yapılamadı!', res.data.message, 'error')\n }\n })\n .catch(err => {\n this.submitBtnLoader = false\n this.errorText = 'Bilgileriniz uyuşmuyor.'\n this.errorLogin = true\n this.$emit('inComplete')\n // this.$swal('Giriş yapılamadı!', 'Kullanıcı bulunamadı. Giriş bilgilerinizi kontrol ediniz.', 'error')\n })\n }\n },\n // async redirectToPlatform(userPlatform) {\n // await this.$auth.logout();\n //\n // const locations = {\n // bilnet: 'https://bilems.bilnetokullari.com/login',\n // bilfen: 'https://bilems.bilfen.com/login'\n // }\n //\n // console.log('locate to ', locations[userPlatform])\n //\n // // todo active this on production\n // window.location.href = locations[userPlatform]\n // },\n }\n});\n\n\n//# sourceURL=webpack://@bilfenyazilimekibi/bilpack/./src/components/bf-login/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
471
471
 
472
472
  /***/ }),
473
473
 
@@ -477,7 +477,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
477
477
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
478
478
 
479
479
  "use strict";
480
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginResetPasswordForm.vue */ \"./src/components/bf-login/LoginResetPasswordForm.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"login\",\n components: {\n LoginResetPasswordForm: _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n },\n head: {\n title: \"Giriş Yap\"\n },\n computed: {\n isResetPasswordMode() {\n return !!this.$route?.query?.token;\n },\n resetPasswordToken() {\n return this.$route?.query?.token || \"\";\n },\n },\n data() {\n return {\n submitBtnLoader: false,\n forgetBtnLoader: false,\n isForgottenPassword: false,\n errorTitle: \"Girmiş olduğunuz bilgiler hatalı\",\n showPassword: false,\n errorLogin: false,\n errorText: '',\n errorIcon: '',\n generalSettings: {},\n valid: false,\n data: '',\n tcRules: [\n v => !!v || 'Tc zorunludur',\n v => v.length <= 11 || 'Maksimum 11 karakter alabilir',\n v => v.length >= 11 || 'Minimum 11 karakter olmalıdır',\n ],\n passwordRules: [\n v => !!v || 'Şifre zorunludur',\n v => v.length >= 4 || 'En az 4 karakter alabilir.',\n ],\n form: {\n tc: '',\n password: '',\n eMail: '',\n }\n }\n },\n created() {\n const self = this;\n self.$setPlatform();\n self.generalSettings = self.initGeneralSettings()\n },\n methods: {\n initGeneralSettings() {\n const self = this;\n try {\n const {logo, bilfenLogo, banners} = self.$bilpack.settings.images.login\n return {logo, bilfenLogo, banners}\n } catch (e) {\n console.error('login page images are not defined [logo, bilfenLogo, banners]')\n return {\n logo: '',\n bilfenLogo: '',\n banners: ''\n }\n }\n },\n async resetPassword() {\n\n const forgetBaseUrl = this.$bilpack.env.bilapps.replace('bilapp', 'bildash')\n const link = window.location.href\n\n this.forgetBtnLoader = true\n this.$axios.post(`${forgetBaseUrl}/forget`, {email: this.form.eMail, link})\n .then(res => {\n this.forgetBtnLoader = false\n if (res.data.status && res.data.data.data !== null) {\n this.isForgottenPassword = false\n this.$store.dispatch('openSnackbar', {\n type: 'success',\n title: 'İşlem başarılı'\n })\n } else {\n console.log('message', res.data.message)\n this.$store.dispatch('openSnackbar', {\n type: 'danger',\n title: res.data.message\n })\n }\n })\n .catch(err => {\n this.forgetBtnLoader = false\n this.$store.dispatch('openSnackbar', {\n type: 'error',\n title: err\n })\n })\n\n },\n submit() {\n if (this.valid) {\n this.submitBtnLoader = true\n this.$auth.loginWith('local', {data: this.form})\n .then((res) => {\n this.submitBtnLoader = false\n const loginData = res.data\n if (loginData.status) {\n const currentPlatform = this.$getPlatform();\n const userPlatform = this.$auth.user.corporationName.toLocaleLowerCase('tr-TR')\n\n if (userPlatform !== currentPlatform) {\n // this.redirectToPlatform(userPlatform);\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n } else {\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n }\n this.$emit('complete')\n } else {\n this.errorText = loginData.message ? loginData.message : 'Bilgileriniz uyuşmuyor.'\n if (loginData.errorHeader) {\n this.errorTitle = loginData.errorHeader\n }\n this.errorLogin = true\n this.$emit('inComplete')\n // this.data = res.data\n // this.$swal('Giriş yapılamadı!', res.data.message, 'error')\n }\n })\n .catch(err => {\n this.submitBtnLoader = false\n this.errorText = 'Bilgileriniz uyuşmuyor.'\n this.errorLogin = true\n this.$emit('inComplete')\n // this.$swal('Giriş yapılamadı!', 'Kullanıcı bulunamadı. Giriş bilgilerinizi kontrol ediniz.', 'error')\n })\n }\n },\n // async redirectToPlatform(userPlatform) {\n // await this.$auth.logout();\n //\n // const locations = {\n // bilnet: 'https://bilems.bilnetokullari.com/login',\n // bilfen: 'https://bilems.bilfen.com/login'\n // }\n //\n // console.log('locate to ', locations[userPlatform])\n //\n // // todo active this on production\n // window.location.href = locations[userPlatform]\n // },\n }\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-login/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
480
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginResetPasswordForm.vue */ \"./src/components/bf-login/LoginResetPasswordForm.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"login\",\n components: {\n LoginResetPasswordForm: _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n },\n head: {\n title: \"Giriş Yap\"\n },\n computed: {\n isResetPasswordMode() {\n return !!this.$route?.query?.token;\n },\n resetPasswordToken() {\n return this.$route?.query?.token || \"\";\n },\n },\n data() {\n return {\n submitBtnLoader: false,\n forgetBtnLoader: false,\n isForgottenPassword: false,\n errorTitle: \"Girmiş olduğunuz bilgiler hatalı\",\n showPassword: false,\n errorLogin: false,\n errorText: '',\n errorIcon: '',\n generalSettings: {},\n valid: false,\n data: '',\n tcRules: [\n v => !!v || 'Tc zorunludur',\n v => v.length <= 11 || 'Maksimum 11 karakter alabilir',\n v => v.length >= 11 || 'Minimum 11 karakter olmalıdır',\n ],\n passwordRules: [\n v => !!v || 'Şifre zorunludur',\n v => v.length >= 4 || 'En az 4 karakter alabilir.',\n ],\n form: {\n tc: '',\n password: '',\n eMail: '',\n }\n }\n },\n created() {\n const self = this;\n self.$setPlatform();\n self.generalSettings = self.initGeneralSettings()\n },\n methods: {\n initGeneralSettings() {\n const self = this;\n try {\n const {logo, bilfenLogo, banners} = self.$bilpack.settings.images.login\n return {logo, bilfenLogo, banners}\n } catch (e) {\n console.error('login page images are not defined [logo, bilfenLogo, banners]')\n return {\n logo: '',\n bilfenLogo: '',\n banners: ''\n }\n }\n },\n async resetPassword() {\n\n const forgetBaseUrl = this.$bilpack.env.bilapps.replace('bilapp', 'bildash')\n const link = window.location.href\n\n this.forgetBtnLoader = true\n this.$axios.post(`${forgetBaseUrl}/forget`, {email: this.form.eMail, link})\n .then(res => {\n this.forgetBtnLoader = false\n if (res.data.status && res.data.data.data !== null) {\n this.isForgottenPassword = false\n this.$store.dispatch('openSnackbar', {\n type: 'success',\n title: res.data.message\n })\n } else {\n this.$store.dispatch('openSnackbar', {\n type: 'danger',\n title: res.data.message\n })\n }\n })\n .catch(err => {\n this.forgetBtnLoader = false\n this.$store.dispatch('openSnackbar', {\n type: 'error',\n title: err\n })\n })\n\n },\n submit() {\n if (this.valid) {\n this.submitBtnLoader = true\n this.$auth.loginWith('local', {data: this.form})\n .then((res) => {\n this.submitBtnLoader = false\n const loginData = res.data\n if (loginData.status) {\n const currentPlatform = this.$getPlatform();\n const userPlatform = this.$auth.user.corporationName.toLocaleLowerCase('tr-TR')\n\n if (userPlatform !== currentPlatform) {\n // this.redirectToPlatform(userPlatform);\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n } else {\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n }\n this.$emit('complete')\n } else {\n this.errorText = loginData.message ? loginData.message : 'Bilgileriniz uyuşmuyor.'\n if (loginData.errorHeader) {\n this.errorTitle = loginData.errorHeader\n }\n this.errorLogin = true\n this.$emit('inComplete')\n // this.data = res.data\n // this.$swal('Giriş yapılamadı!', res.data.message, 'error')\n }\n })\n .catch(err => {\n this.submitBtnLoader = false\n this.errorText = 'Bilgileriniz uyuşmuyor.'\n this.errorLogin = true\n this.$emit('inComplete')\n // this.$swal('Giriş yapılamadı!', 'Kullanıcı bulunamadı. Giriş bilgilerinizi kontrol ediniz.', 'error')\n })\n }\n },\n // async redirectToPlatform(userPlatform) {\n // await this.$auth.logout();\n //\n // const locations = {\n // bilnet: 'https://bilems.bilnetokullari.com/login',\n // bilfen: 'https://bilems.bilfen.com/login'\n // }\n //\n // console.log('locate to ', locations[userPlatform])\n //\n // // todo active this on production\n // window.location.href = locations[userPlatform]\n // },\n }\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-login/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
481
481
 
482
482
  /***/ }),
483
483
 
@@ -477,7 +477,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
477
477
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
478
478
 
479
479
  "use strict";
480
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginResetPasswordForm.vue */ \"./src/components/bf-login/LoginResetPasswordForm.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"login\",\n components: {\n LoginResetPasswordForm: _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n },\n head: {\n title: \"Giriş Yap\"\n },\n computed: {\n isResetPasswordMode() {\n return !!this.$route?.query?.token;\n },\n resetPasswordToken() {\n return this.$route?.query?.token || \"\";\n },\n },\n data() {\n return {\n submitBtnLoader: false,\n forgetBtnLoader: false,\n isForgottenPassword: false,\n errorTitle: \"Girmiş olduğunuz bilgiler hatalı\",\n showPassword: false,\n errorLogin: false,\n errorText: '',\n errorIcon: '',\n generalSettings: {},\n valid: false,\n data: '',\n tcRules: [\n v => !!v || 'Tc zorunludur',\n v => v.length <= 11 || 'Maksimum 11 karakter alabilir',\n v => v.length >= 11 || 'Minimum 11 karakter olmalıdır',\n ],\n passwordRules: [\n v => !!v || 'Şifre zorunludur',\n v => v.length >= 4 || 'En az 4 karakter alabilir.',\n ],\n form: {\n tc: '',\n password: '',\n eMail: '',\n }\n }\n },\n created() {\n const self = this;\n self.$setPlatform();\n self.generalSettings = self.initGeneralSettings()\n },\n methods: {\n initGeneralSettings() {\n const self = this;\n try {\n const {logo, bilfenLogo, banners} = self.$bilpack.settings.images.login\n return {logo, bilfenLogo, banners}\n } catch (e) {\n console.error('login page images are not defined [logo, bilfenLogo, banners]')\n return {\n logo: '',\n bilfenLogo: '',\n banners: ''\n }\n }\n },\n async resetPassword() {\n\n const forgetBaseUrl = this.$bilpack.env.bilapps.replace('bilapp', 'bildash')\n const link = window.location.href\n\n this.forgetBtnLoader = true\n this.$axios.post(`${forgetBaseUrl}/forget`, {email: this.form.eMail, link})\n .then(res => {\n this.forgetBtnLoader = false\n if (res.data.status && res.data.data.data !== null) {\n this.isForgottenPassword = false\n this.$store.dispatch('openSnackbar', {\n type: 'success',\n title: 'İşlem başarılı'\n })\n } else {\n console.log('message', res.data.message)\n this.$store.dispatch('openSnackbar', {\n type: 'danger',\n title: res.data.message\n })\n }\n })\n .catch(err => {\n this.forgetBtnLoader = false\n this.$store.dispatch('openSnackbar', {\n type: 'error',\n title: err\n })\n })\n\n },\n submit() {\n if (this.valid) {\n this.submitBtnLoader = true\n this.$auth.loginWith('local', {data: this.form})\n .then((res) => {\n this.submitBtnLoader = false\n const loginData = res.data\n if (loginData.status) {\n const currentPlatform = this.$getPlatform();\n const userPlatform = this.$auth.user.corporationName.toLocaleLowerCase('tr-TR')\n\n if (userPlatform !== currentPlatform) {\n // this.redirectToPlatform(userPlatform);\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n } else {\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n }\n this.$emit('complete')\n } else {\n this.errorText = loginData.message ? loginData.message : 'Bilgileriniz uyuşmuyor.'\n if (loginData.errorHeader) {\n this.errorTitle = loginData.errorHeader\n }\n this.errorLogin = true\n this.$emit('inComplete')\n // this.data = res.data\n // this.$swal('Giriş yapılamadı!', res.data.message, 'error')\n }\n })\n .catch(err => {\n this.submitBtnLoader = false\n this.errorText = 'Bilgileriniz uyuşmuyor.'\n this.errorLogin = true\n this.$emit('inComplete')\n // this.$swal('Giriş yapılamadı!', 'Kullanıcı bulunamadı. Giriş bilgilerinizi kontrol ediniz.', 'error')\n })\n }\n },\n // async redirectToPlatform(userPlatform) {\n // await this.$auth.logout();\n //\n // const locations = {\n // bilnet: 'https://bilems.bilnetokullari.com/login',\n // bilfen: 'https://bilems.bilfen.com/login'\n // }\n //\n // console.log('locate to ', locations[userPlatform])\n //\n // // todo active this on production\n // window.location.href = locations[userPlatform]\n // },\n }\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-login/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
480
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginResetPasswordForm.vue */ \"./src/components/bf-login/LoginResetPasswordForm.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"login\",\n components: {\n LoginResetPasswordForm: _LoginResetPasswordForm_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n },\n head: {\n title: \"Giriş Yap\"\n },\n computed: {\n isResetPasswordMode() {\n return !!this.$route?.query?.token;\n },\n resetPasswordToken() {\n return this.$route?.query?.token || \"\";\n },\n },\n data() {\n return {\n submitBtnLoader: false,\n forgetBtnLoader: false,\n isForgottenPassword: false,\n errorTitle: \"Girmiş olduğunuz bilgiler hatalı\",\n showPassword: false,\n errorLogin: false,\n errorText: '',\n errorIcon: '',\n generalSettings: {},\n valid: false,\n data: '',\n tcRules: [\n v => !!v || 'Tc zorunludur',\n v => v.length <= 11 || 'Maksimum 11 karakter alabilir',\n v => v.length >= 11 || 'Minimum 11 karakter olmalıdır',\n ],\n passwordRules: [\n v => !!v || 'Şifre zorunludur',\n v => v.length >= 4 || 'En az 4 karakter alabilir.',\n ],\n form: {\n tc: '',\n password: '',\n eMail: '',\n }\n }\n },\n created() {\n const self = this;\n self.$setPlatform();\n self.generalSettings = self.initGeneralSettings()\n },\n methods: {\n initGeneralSettings() {\n const self = this;\n try {\n const {logo, bilfenLogo, banners} = self.$bilpack.settings.images.login\n return {logo, bilfenLogo, banners}\n } catch (e) {\n console.error('login page images are not defined [logo, bilfenLogo, banners]')\n return {\n logo: '',\n bilfenLogo: '',\n banners: ''\n }\n }\n },\n async resetPassword() {\n\n const forgetBaseUrl = this.$bilpack.env.bilapps.replace('bilapp', 'bildash')\n const link = window.location.href\n\n this.forgetBtnLoader = true\n this.$axios.post(`${forgetBaseUrl}/forget`, {email: this.form.eMail, link})\n .then(res => {\n this.forgetBtnLoader = false\n if (res.data.status && res.data.data.data !== null) {\n this.isForgottenPassword = false\n this.$store.dispatch('openSnackbar', {\n type: 'success',\n title: res.data.message\n })\n } else {\n this.$store.dispatch('openSnackbar', {\n type: 'danger',\n title: res.data.message\n })\n }\n })\n .catch(err => {\n this.forgetBtnLoader = false\n this.$store.dispatch('openSnackbar', {\n type: 'error',\n title: err\n })\n })\n\n },\n submit() {\n if (this.valid) {\n this.submitBtnLoader = true\n this.$auth.loginWith('local', {data: this.form})\n .then((res) => {\n this.submitBtnLoader = false\n const loginData = res.data\n if (loginData.status) {\n const currentPlatform = this.$getPlatform();\n const userPlatform = this.$auth.user.corporationName.toLocaleLowerCase('tr-TR')\n\n if (userPlatform !== currentPlatform) {\n // this.redirectToPlatform(userPlatform);\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n } else {\n this.$store.dispatch('setToken', loginData.token)\n this.errorLogin = false\n this.$router.push('/')\n }\n this.$emit('complete')\n } else {\n this.errorText = loginData.message ? loginData.message : 'Bilgileriniz uyuşmuyor.'\n if (loginData.errorHeader) {\n this.errorTitle = loginData.errorHeader\n }\n this.errorLogin = true\n this.$emit('inComplete')\n // this.data = res.data\n // this.$swal('Giriş yapılamadı!', res.data.message, 'error')\n }\n })\n .catch(err => {\n this.submitBtnLoader = false\n this.errorText = 'Bilgileriniz uyuşmuyor.'\n this.errorLogin = true\n this.$emit('inComplete')\n // this.$swal('Giriş yapılamadı!', 'Kullanıcı bulunamadı. Giriş bilgilerinizi kontrol ediniz.', 'error')\n })\n }\n },\n // async redirectToPlatform(userPlatform) {\n // await this.$auth.logout();\n //\n // const locations = {\n // bilnet: 'https://bilems.bilnetokullari.com/login',\n // bilfen: 'https://bilems.bilfen.com/login'\n // }\n //\n // console.log('locate to ', locations[userPlatform])\n //\n // // todo active this on production\n // window.location.href = locations[userPlatform]\n // },\n }\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-login/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
481
481
 
482
482
  /***/ }),
483
483
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bilfenyazilimekibi/bilpack",
3
- "version": "1.3.28",
3
+ "version": "1.3.29",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build-default": "vue-cli-service build",