@@ -58,7 +58,6 @@ define([
58
58
show : function ( event ) {
59
59
var context = this ;
60
60
if ( ! dojoConfig . username ) {
61
- cookie ( "Status" , "Unlocked" ) ;
62
61
context . storage . setItem ( "Status" , "Unlocked" ) ;
63
62
topic . publish ( "hpcc/session_management_status" , {
64
63
status : "Unlocked"
@@ -96,7 +95,6 @@ define([
96
95
var context = this ;
97
96
98
97
if ( this . unlockForm . validate ( ) ) {
99
- cookie ( "Status" , "login_attempt" ) ;
100
98
WsAccount . Unlock ( {
101
99
request : {
102
100
username : this . unlockUserName . get ( "value" ) ,
@@ -113,7 +111,6 @@ define([
113
111
topic . publish ( "hpcc/session_management_status" , {
114
112
status : "Unlocked"
115
113
} ) ;
116
- cookie ( "Status" , "Unlocked" ) ;
117
114
context . storage . setItem ( "Status" , "Unlocked" ) ;
118
115
if ( context . idleFired ) {
119
116
dojo . publish ( "hpcc/brToaster" , {
@@ -127,7 +124,6 @@ define([
127
124
}
128
125
} else {
129
126
context . unlockStatus . innerHTML = response . UnlockResponse . Message ;
130
- cookie ( "Status" , "Locked" ) ;
131
127
}
132
128
} ) ;
133
129
}
@@ -150,10 +146,9 @@ define([
150
146
topic . publish ( "hpcc/session_management_status" , {
151
147
status : "Locked"
152
148
} ) ;
153
- cookie ( "Status" , "Locked" ) ;
154
149
context . storage . setItem ( "Status" , "Locked" ) ;
155
- } else if ( cookie ( "Status" ) === "Unlocked" ) {
156
- xhr ( "esp/lock" , {
150
+ } else {
151
+ xhr ( "/ esp/lock" , {
157
152
method : "post"
158
153
} ) . then ( function ( response ) {
159
154
if ( response ) {
@@ -163,7 +158,6 @@ define([
163
158
topic . publish ( "hpcc/session_management_status" , {
164
159
status : "Locked"
165
160
} ) ;
166
- cookie ( "Status" , "Locked" ) ;
167
161
context . storage . setItem ( "Status" , "Locked" ) ;
168
162
}
169
163
} ) ;
0 commit comments