Skip to content

Commit b957815

Browse files
committed
acf incompats
1 parent 01d5930 commit b957815

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

models/CBSecurity.cfc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ component threadsafe singleton accessors="true" {
436436
* @message The error message to throw in the exception
437437
*
438438
* @throws NoUserLoggedIn
439-
* @throws NotAuthorized
439+
* @throws NotAuthorized
440440
*/
441441
CBSecurity function secureSameUser( required user, message = variables.DEFAULT_ERROR_MESSAGE ){
442442
if ( !sameUser( arguments.user ) ) {
@@ -648,20 +648,20 @@ component threadsafe singleton accessors="true" {
648648
'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
649649
'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
650650
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
651-
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
651+
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'
652652
], true ) )
653653
._when( arguments.numbers, () => characters.append( [
654-
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
654+
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
655655
], true ) )
656656
._when( arguments.symbols, () => characters.append( [
657657
'~', '!', '##', '$', '%', '^', '&', '*', '(', ')', '-',
658658
'_', '.', ',', '<', '>', '?', '/', '\', '{', '}', '[',
659-
']', '|', ':', ';',
659+
']', '|', ':', ';'
660660
], true ) );
661661
// cfformat-ignore-end
662662

663-
return async
664-
.arrayRange( to: arguments.length )
663+
return repeatString( "1", arguments.length )
664+
.listToArray( "" )
665665
.map( () => characters[ randRange( 1, characters.len() ) ] )
666666
.toList( "" );
667667
}

0 commit comments

Comments
 (0)