summaryrefslogtreecommitdiffstats
path: root/afb-client/app/Frontend/pages
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-23 00:54:27 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-23 00:54:27 +0100
commit07bbb1900acc411da012291f6c0530230a1110e0 (patch)
treeba84040b81351ef3b7542fdbe40f9b284c5d0b69 /afb-client/app/Frontend/pages
parentb9b2a4e990f6a0a80281bd21132152b79665c3d2 (diff)
Added Autolog to TokenRefresh Widget
Diffstat (limited to 'afb-client/app/Frontend/pages')
-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);