Skip to content

Commit 39923ac

Browse files
committed
more adobe incompats
1 parent b6f3bf3 commit 39923ac

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

models/jwt/JwtService.cfc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ component accessors="true" singleton{
141141
// Announce the creation
142142
variables.interceptorService.processState( "cbSecurity_onJWTCreation", {
143143
token : jwtToken,
144-
payload : arguments.payload,
144+
payload : payload,
145145
user : arguments.user
146146
} );
147147

@@ -208,6 +208,8 @@ component accessors="true" singleton{
208208
variables.interceptorService.processState( "cbSecurity_onJWTInvalidation", {
209209
token : arguments.token
210210
} );
211+
212+
return results;
211213
}
212214

213215
/************************************************************************************/

models/jwt/storages/DBTokenStorage.cfc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,13 @@ component accessors="true" singleton{
122122
* Do the rotation
123123
*/
124124
function doRotation(){
125-
var qLogs = "";
126-
var cols = variables.columns;
127125
var targetDate = dateAdd( "d", "-#variables.properties.rotationDays#", now() );
128126

129127
if( variables.log.canInfo() ){
130128
variables.log.info( "DBTokenStorage starting token rotation using (#variables.properties.rotationDays#) rotation days" );
131129
}
132130

133-
var qResults = queryExecute(
131+
queryExecute(
134132
"DELETE
135133
FROM #getTable()#
136134
WHERE expiration < :targetDate
@@ -139,7 +137,8 @@ component accessors="true" singleton{
139137
targetDate = { cfsqltype="timestamp", value=targetDate }
140138
},
141139
{
142-
datasource = variables.properties.dsn
140+
datasource = variables.properties.dsn,
141+
result = "local.qResults"
143142
}
144143
);
145144

@@ -186,7 +185,7 @@ component accessors="true" singleton{
186185
token = { cfsqltype="longvarchar",value=arguments.token },
187186
expiration = { cfsqltype="timestamp", value=jwtService.fromEpoch( arguments.payload.exp ) },
188187
issued = { cfsqltype="timestamp", value=jwtService.fromEpoch( arguments.payload.iat ) },
189-
subject = { cfsqltype="varchar", value=arguments.payload.sub },
188+
subject = { cfsqltype="varchar", value=arguments.payload.sub }
190189
},
191190
{
192191
datasource = variables.properties.dsn
@@ -217,12 +216,13 @@ component accessors="true" singleton{
217216
",
218217
{
219218
cacheKey : arguments.key,
220-
now : { cfsqltype="timestamp", value=now() },
219+
now : { cfsqltype="timestamp", value=now() }
221220
},
222221
{
223222
datsource = variables.properties.dsn
224223
}
225224
);
225+
226226
return qResults.recordcount > 0;
227227
}
228228

test-harness/index.cfm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<cfsetting enablecfoutputonly="yes">
22
<!-----------------------------------------------------------------------
3-
Template : index.cfm
3+
Template : index.cfm
44
Author : Luis Majano
55
Date : October 15, 2005
6-
Description :
6+
Description :
77
This is only a place holder since everything occurs in application.cfc now.
88
----------------------------------------------------------------------->
99
<cfsetting enablecfoutputonly="no">
10+
<cfsetting showdebugoutput="false">

0 commit comments

Comments
 (0)