Skip to content

Commit 70f2efc

Browse files
committed
formatting
1 parent 5fcff02 commit 70f2efc

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

box.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"cbauth":"^3.0.0"
2727
},
2828
"scripts":{
29-
"toMaster":"recipe build/toMaster.boxr"
29+
"toMaster":"recipe build/toMaster.boxr",
30+
"format": "cfformat handlers/**.cfc,interceptors/**.cfc,models/**.cfc --overwrite",
31+
"format:watch": "cfformat handlers/**.cfc,interceptors/**.cfc,models/**.cfc --watch",
32+
"format:check": "cfformat handlers/**.cfc,interceptors/**.cfc,models/**.cfc --check"
3033
}
3134
}

config/security.json.cfm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"match": "event",
66
"roles": "admin",
77
"permissions": "",
8+
"useSSL": false,
89
"redirect": "user.login",
9-
"useSSL": false
10+
"action" : "redirect"
1011
},
1112
{
1213
"whitelist": "",

config/security.xml.cfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ that can be found in an event.
2424
<redirect>user.login</redirect>
2525
<overrideEvent>user.login</overrideEvent>
2626
<useSSL>false</useSSL>
27+
<action>redirect</action>
2728
</rule>
2829
</rules>

config/securityrules.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CREATE TABLE securityrules
1111
'overrideEvent' VARCHAR(255),
1212
'useSSL' bit NOT NULL DEFAULT 0
1313
'match' varchar(10) DEFAULT 'event'
14+
'action' varchar(20) DEFAULT 'redirect'
1415
PRIMARY KEY (securityrule_id),
1516
UNIQUE (securityrule_id)
1617
);

handlers/Home.cfc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/**
22
* Visualize system security rules
33
*/
4-
component{
4+
component {
55

66
property name="cbSecurity" inject="coldbox:interceptor:cbsecurity@global";
77

88
function index( event, rc, prc ){
99
prc.properties = cbSecurity.getProperties();
1010

1111
// If not enabled or in production, just 404 it
12-
if( !prc.properties.enableSecurityVisualizer || getSetting( "environment" ) == "production" ){
13-
event.setHTTPHeader( statusCode=404, statusText="page not found" );
12+
if ( !prc.properties.enableSecurityVisualizer || getSetting( "environment" ) == "production" ) {
13+
event.setHTTPHeader( statusCode = 404, statusText = "page not found" );
1414
return "Page Not Found";
1515
}
1616

0 commit comments

Comments
 (0)