From 48323ed9afbf508974afce397ea21ec33faf21fd Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 28 Jan 2017 18:43:30 +0100 Subject: [PATCH] Completed functions schema --- assets/js/common/functionsSchema.js | 25 +++++++++++++++++++++++++ assets/js/user/loginTokens.js | 1 + assets/js/user/userLogin.js | 9 +++++++++ corePage/config/dev.config.php | 1 + 4 files changed, 36 insertions(+) create mode 100644 assets/js/user/userLogin.js 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",