{"remainingRequest":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/soeren/dev/keksaccountgui/src/components/Login.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/components/Login.vue","mtime":1559742501210},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vuetify-loader/lib/loader.js","mtime":1564062719000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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 UserService from '../services/User'\n\nexport default {\n data () {\n return {\n username: '',\n password: '',\n errorMessage: '',\n nameBig: '',\n nameSmall: '',\n loginText: '',\n logintoMainAccount: true\n }\n },\n props: [\n 'loginToService',\n 'serviceName'\n ],\n methods: {\n 'login': function () {\n UserService.login(this.username, this.password).then((res) => {\n this.errorMessage = '';\n UserService.setAccessToken(res.data.data[\"access_token\"]);\n console.log(\"Login ok, dispatch event\");\n this.$store.dispatch('checkAccount');\n this.$emit('loggedIn')\n }, (res) => {\n this.errorMessage = res.response.data.msg;\n });\n },\n showPermanentLogin: function () {\n return false;\n if(this.loginToService && this.logintoMainAccount) {\n return true;\n }\n if(!this.loginToService) {\n return true;\n }\n return false;\n }\n },\n mounted: function() {\n this.nameBig = this.$store.getters.getSettingValue(\"name_big\");\n this.nameSmall = this.$store.getters.getSettingValue(\"name_small\");\n this.loginText = \"Login to \"+this.nameBig+this.nameSmall+\" too\"\n }\n}\n",{"version":3,"sources":["Login.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"Login.vue","sourceRoot":"src/components","sourcesContent":["\n \n Login\n \n {{ errorMessage }}\n \n Login to your {{ serviceName }}{{nameBig}}{{nameSmall}} with your credentials.\n \n \n \n \n \n Login\n \n \n\n\n\n\n\n"]}]}
Login to your {{ serviceName }}{{nameBig}}{{nameSmall}} with your credentials.