ok, ora sistemare SignUp
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user