diff --git a/assets/js/common/functionsSchema.js b/assets/js/common/functionsSchema.js index 7720b802..f6f38266 100644 --- a/assets/js/common/functionsSchema.js +++ b/assets/js/common/functionsSchema.js @@ -186,6 +186,31 @@ var ComunicWeb = { * Login tokens storage controller */ loginTokens: { + /** + * Set User tokens + */ + setUserTokens: function(tokens, storageType){}, + + /** + * Check if there is any login tokens available + */ + checkLoginTokens: function(){}, + + /** + * Get login tokens + */ + getLoginTokens: function(){}, + + /** + * Perform user logout + */ + deleteLoginTokens: function(){}, + }, + + /** + * Manage user login + */ + userLogin: { //TODO: implement }, }, diff --git a/assets/js/user/loginTokens.js b/assets/js/user/loginTokens.js index 2ff4b02d..d2b2745a 100644 --- a/assets/js/user/loginTokens.js +++ b/assets/js/user/loginTokens.js @@ -6,6 +6,7 @@ */ ComunicWeb.user.loginTokens = { + /** * Set User tokens * diff --git a/assets/js/user/userLogin.js b/assets/js/user/userLogin.js new file mode 100644 index 00000000..a28e6907 --- /dev/null +++ b/assets/js/user/userLogin.js @@ -0,0 +1,9 @@ +/** + * Manage user login + * + * @author Pierre HUBERT + */ + +ComunicWeb.user.userLogin = { + +} \ No newline at end of file diff --git a/corePage/config/dev.config.php b/corePage/config/dev.config.php index 517ae60f..f0a1bdd3 100644 --- a/corePage/config/dev.config.php +++ b/corePage/config/dev.config.php @@ -45,6 +45,7 @@ $config['JSfiles'] = array( //User scripts "%PATH_ASSETS%js/user/loginTokens.js", + "%PATH_ASSETS%js/user/userLogin.js", //Init script "%PATH_ASSETS%js/init.js",