4 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
5 p(:class="{warn:!!this.errmsg}")
6 | {{ errmsg || st.tr["Authentication successful!"] }}
10 import { store } from "@/store";
11 import { ajax } from "@/utils/ajax";
24 {token: this.$route.params["token"]},
26 if (!res.errmsg) //if not already logged in
28 this.st.user.id = res.id;
29 this.st.user.name = res.name;
30 this.st.user.email = res.email;
31 this.st.user.notify = res.notify;
32 localStorage["myname"] = res.name;
33 localStorage["myid"] = res.id;
36 this.errmsg = res.errmsg;
43 <style lang="sass" scoped>
47 background-color: lightgrey