{"remainingRequest":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/soeren/dev/keksaccountgui/src/views/Login.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/views/Login.vue","mtime":1563355562050},{"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\nimport ServerService from '../services/Server'\nimport UserService from '../services/User'\nimport LoginComponent from '../components/Login'\n\nexport default {\n data () {\n return {\n nameBig: '',\n nameSmall: '',\n username: '',\n password: '',\n errorMessage: ''\n }\n },\n components: {\n \"Login\": LoginComponent\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 }, (res) => {\n this.errorMessage = res.response.data.msg;\n });\n }\n },\n mounted: function() {\n console.log(\"REDIRECT: \"+this.$store.state.redirectIfLoggedIn)\n if(this.$store.state.loggedIn == true) {\n if(this.$store.state.redirectIfLoggedIn != null) {\n this.$router.push(this.$store.state.redirectIfLoggedIn);\n } else {\n this.$router.push({name: 'Dashboard'});\n }\n\n\n }\n this.nameBig = this.$store.getters.getSettingValue(\"name_big\");\n this.nameSmall = this.$store.getters.getSettingValue(\"name_small\");\n }\n }\n",{"version":3,"sources":["Login.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwBA;AACA;AACA;;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;;;AAGA;AACA;AACA;AACA;AACA","file":"Login.vue","sourceRoot":"src/views","sourcesContent":["\n \n \n \n \n \n \n \n \n \n \n Hallo {{$store.getters.getMe[\"username\"]}}, du bist bereits eingeloggt.\n \n\n\n \n \n\n\n \n\n\n\n\n\n\n"]}]}
Hallo {{$store.getters.getMe[\"username\"]}}, du bist bereits eingeloggt.