summaryrefslogtreecommitdiffstats
path: root/afb-client/app/Frontend/pages/Home
diff options
context:
space:
mode:
Diffstat (limited to 'afb-client/app/Frontend/pages/Home')
-rw-r--r--afb-client/app/Frontend/pages/Home/Home.html2
-rw-r--r--afb-client/app/Frontend/pages/Home/HomeModule.js8
2 files changed, 5 insertions, 5 deletions
diff --git a/afb-client/app/Frontend/pages/Home/Home.html b/afb-client/app/Frontend/pages/Home/Home.html
index 307bd2d..d3c6719 100644
--- a/afb-client/app/Frontend/pages/Home/Home.html
+++ b/afb-client/app/Frontend/pages/Home/Home.html
@@ -11,7 +11,7 @@ animationIn: slideInRight
App Framework Binder Simple Client
</h3>
-<token-refresh></token-refresh>
+<token-refresh autolog="true"></token-refresh>
<div class="button-box box-content ">
diff --git a/afb-client/app/Frontend/pages/Home/HomeModule.js b/afb-client/app/Frontend/pages/Home/HomeModule.js
index 6ebaefc..6a73bdf 100644
--- a/afb-client/app/Frontend/pages/Home/HomeModule.js
+++ b/afb-client/app/Frontend/pages/Home/HomeModule.js
@@ -56,7 +56,7 @@ angular.module('HomeModule', ['SubmitButton', 'TokenRefresh'])
scope.OpenSession = function() {
console.log ("OpenSession");
var postdata= {/* any json your application may need */};
- var handler = $http.post(ConfigApp.api.token + 'create?token='+ConfigApp.session.initial, postdata);
+ var handler = $http.post(ConfigApp.session.create + '?token='+ConfigApp.session.initial, postdata);
handler.success(scope.ProcessResponse);
handler.error(scope.ProcessError);
@@ -65,7 +65,7 @@ angular.module('HomeModule', ['SubmitButton', 'TokenRefresh'])
scope.CheckSession = function() {
console.log ("CloseSession");
var postdata= {/* any json your application may need */};
- var handler = $http.post(ConfigApp.api.token + 'check?token='+scope.token, postdata);
+ var handler = $http.post(ConfigApp.session.check + '?token='+ConfigApp.session.token, postdata);
handler.success(scope.ProcessResponse);
handler.error(scope.ProcessError);
@@ -74,7 +74,7 @@ angular.module('HomeModule', ['SubmitButton', 'TokenRefresh'])
scope.RefreshSession = function() {
console.log ("RefreshSession");
var postdata= {/* any json your application may need */};
- var handler = $http.post(ConfigApp.api.token + 'refresh?token='+scope.token, postdata);
+ var handler = $http.post(ConfigApp.session.refresh + '?token='+ConfigApp.session.token, postdata);
handler.success(scope.ProcessResponse);
handler.error(scope.ProcessError);
@@ -83,7 +83,7 @@ angular.module('HomeModule', ['SubmitButton', 'TokenRefresh'])
scope.ResetSession = function() {
console.log ("ResetSession");
var postdata= {/* any json your application may need */};
- var handler = $http.post(ConfigApp.api.token + 'reset?token='+scope.token, postdata);
+ var handler = $http.post(ConfigApp.session.reset + '?token='+ConfigApp.session.token, postdata);
handler.success(scope.ProcessResponse);
handler.error(scope.ProcessError);