ok, ora sistemare SignUp

This commit is contained in:
paolo
2018-11-06 00:21:22 +01:00
parent 03d57ba50e
commit 7c1d07797e
8 changed files with 90 additions and 72 deletions

View File

@@ -448,7 +448,7 @@ class User extends VuexModule implements IUserState { // Non occorrono i gette
})
}
@Action({ commit: types.USER_AUTOLOGIN })
@Mutation
autologin () {
const token = localStorage.getItem('token')
if (!token) {

View File

@@ -1,24 +1,24 @@
export const SET_VALUE = 'SET_VALUE';
export const SET_DEFFERED_PROMPT = 'defprompt';
export const SET_LOGIN_PAGE = 'setloginpage';
export const SET_LAYOUT_NEEDED = 'setlayneeded';
export const SET_MOBILE_MODE = 'setmobilemode';
export const SET_MENU_COLLAPSED = 'setmenucoll';
export const SET_POSTS = 'setposts';
export const SET_FORM_SIGNUP = 'formsignup';
export const SET_VALUE = 'SET_VALUE'
export const SET_DEFFERED_PROMPT = 'defprompt'
export const SET_LOGIN_PAGE = 'setloginpage'
export const SET_LAYOUT_NEEDED = 'setlayneeded'
export const SET_MOBILE_MODE = 'setmobilemode'
export const SET_MENU_COLLAPSED = 'setmenucoll'
export const SET_POSTS = 'setposts'
export const SET_FORM_SIGNUP = 'formsignup'
// USER:
export const USER_REC = 'user_rec';
export const USER_USERNAME = 'username';
export const USER_EMAIL = 'email';
export const USER_LANG = 'lang';
export const USER_PASSWORD = 'password';
export const USER_DATEOFBIRTH = 'dateofbirth';
export const USER_REC = 'user_rec'
export const USER_USERNAME = 'username'
export const USER_EMAIL = 'email'
export const USER_LANG = 'lang'
export const USER_PASSWORD = 'password'
export const USER_DATEOFBIRTH = 'dateofbirth'
export const USER_SIGNUP = 'signup';
export const USER_SIGNIN = 'signin';
export const USER_AUTOLOGIN = 'autologin';
export const USER_LOGOUT = 'logout';
export const USER_VREG = 'vreg';
export const USER_REQUESTRESETPWD = 'requestpwd';
export const USER_UPDATEPWD = 'resetpwd';
export const USER_SIGNUP = 'signup'
export const USER_SIGNIN = 'signin'
export const USER_AUTOLOGIN = 'autologin'
export const USER_LOGOUT = 'logout'
export const USER_VREG = 'vreg'
export const USER_REQUESTRESETPWD = 'requestpwd'
export const USER_UPDATEPWD = 'resetpwd'