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"] },
27 //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;
34 } else this.errmsg = res.errmsg;
41 <style lang="sass" scoped>
45 background-color: lightgrey