HEX
Server: Apache
System: Linux srv-plesk28.ps.kz 5.14.0-284.18.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 29 17:06:27 EDT 2023 x86_64
User: greencl1 (10085)
PHP: 8.1.33
Disabled: apache_setenv,dl,eval,exec,openlog,passthru,pcntl_exec,pcntl_fork,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,socket_create,socket_create_listen,socket_create_pair,syslog,system,socket_listen,stream_socket_server
Upload Files
File: /var/www/vhosts/greenclinic.kz/clinic_front/dist-old-4/js/chunk-020e1df6.87982a27.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-020e1df6"],{a4c2:function(t,e,n){"use strict";var o=n("a72e"),s=n.n(o);s.a},a72e:function(t,e,n){},d231:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sign__page"},[n("p",{staticClass:"sign__page__title"},[t._v("GREEN CLINIC")]),n("form",{staticClass:"sign__page__block",on:{submit:function(e){return e.preventDefault(),t.login_sign(e)}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.login,expression:"login"}],attrs:{type:"text",placeholder:"Логин"},domProps:{value:t.login},on:{input:function(e){e.target.composing||(t.login=e.target.value)}}}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"text",placeholder:"Пароль"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),t._m(0)])])},s=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{attrs:{type:"submit"}},[n("p",[t._v("Войти")])])}],a=(n("b0c0"),{data:function(){return{login:"",password:"",user:{role:""}}},mounted:function(){},methods:{login_sign:function(){var t=this,e={email:this.login,password:this.password};this.$http.post("/login",e).then((function(e){localStorage.setItem("access_token",e.data.token),t.token=localStorage.getItem("access_token"),t.get_profile()}))},get_profile:function(){var t=this;this.$http.post("/get/user/me",{},{headers:{Authorization:"Bearer ".concat(this.token)}}).then((function(e){t.user.role=e.data.name,"Администратор системы"==t.user.role?t.$router.push("/green/admin"):t.$router.push("/404")}))}}}),i=a,r=(n("a4c2"),n("2877")),u=Object(r["a"])(i,o,s,!1,null,"cce74366",null);e["default"]=u.exports}}]);
//# sourceMappingURL=chunk-020e1df6.87982a27.js.map