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";
25 {token: this.$route.params["token"]},
27 if (!res.errmsg) //if not already logged in
29 this.st.user.id = res.id;
30 this.st.user.name = res.name;
31 this.st.user.email = res.email;
32 this.st.user.notify = res.notify;
33 localStorage["myname"] = res.name;
34 localStorage["myid"] = res.id;
37 this.errmsg = res.errmsg;
44 <style lang="sass" scoped>
48 background-color: lightgrey