text: (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"KHd+":function(e,r,t){"use strict";function s(e,r,t,s,n,a,o,i){var m,c="function"==typeof e?e.options:e;if(r&&(c.render=r,c.staticRenderFns=t,c._compiled=!0),s&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(m=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=m):n&&(m=i?function(){n.call(this,this.$root.$options.shadowRoot)}:n),m)if(c.functional){c._injectStyles=m;var u=c.render;c.render=function(e,r){return m.call(r),u(e,r)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,m):[m]}return{exports:e,options:c}}t.d(r,"a",(function(){return s}))},PSuA:function(e,r,t){"use strict";t.r(r);var s={data:function(){return{username:"",password:"",remember:!1}},computed:{authErrors:function(){return this.$store.getters.authErrors}},methods:{login:function(){var e=this,r=this.username,t=this.password,s=this.remember;this.$store.dispatch("authRequest",{username:r,password:t,remember:s}).then((function(){e.$router.push("/")}))}}},n=t("KHd+"),a=Object(n.a)(s,(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"auth-form text-center"},[t("form",{attrs:{method:"POST"},on:{submit:function(r){return r.preventDefault(),e.login(r)}}},[t("h1",[e._v("Taskinder")]),e._v(" "),e.authErrors.has("invalid_credentials")?t("p",{staticClass:"text-danger",domProps:{textContent:e._s(e.authErrors.get("invalid_credentials"))}}):e._e(),e._v(" "),t("label",{staticClass:"sr-only",attrs:{for:"username"}},[e._v("Username")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],staticClass:"form-control",attrs:{type:"text",id:"username",placeholder:"Username",required:"",autofocus:""},domProps:{value:e.username},on:{input:function(r){r.target.composing||(e.username=r.target.value)}}}),e._v(" "),t("label",{staticClass:"sr-only",attrs:{for:"password"}},[e._v("Password")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"form-control",attrs:{type:"password",id:"password",placeholder:"Password",required:""},domProps:{value:e.password},on:{input:function(r){r.target.composing||(e.password=r.target.value)}}}),e._v(" "),t("div",{staticClass:"checkbox mt-2"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.remember,expression:"remember"}],attrs:{type:"checkbox",value:"remember"},domProps:{checked:Array.isArray(e.remember)?e._i(e.remember,"remember")>-1:e.remember},on:{change:function(r){var t=e.remember,s=r.target,n=!!s.checked;if(Array.isArray(t)){var a=e._i(t,"remember");s.checked?a<0&&(e.remember=t.concat(["remember"])):a>-1&&(e.remember=t.slice(0,a).concat(t.slice(a+1)))}else e.remember=n}}}),e._v(" Remember me\n            ")])]),e._v(" "),t("button",{staticClass:"btn btn-lg btn-primary btn-block mt-2 mb-2",attrs:{type:"submit"}},[e._v("Sign in")]),e._v(" "),t("router-link",{attrs:{to:{name:"password-email"}}},[e._v("Forgot Password")])],1)])}),[],!1,null,null,null);r.default=a.exports}}]);
  //# sourceMappingURL=3.js.map?id=3d68a4464b5d9dc9cdb9