Skip to content

Commit 32f5133

Browse files
committed
use arguments scope
1 parent dc6167f commit 32f5133

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/lib/auth0.cfc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ component {
211211

212212
public any function listMFA(required string email) {
213213
var token = getAuthToken();
214-
var auth0user = getUserByEmail(email)
214+
var auth0user = getUserByEmail(arguments.email)
215215
var result = {};
216216
if (ArrayLen(auth0user) > 0) {
217217
var userId = auth0user[1].user_id;
@@ -565,8 +565,8 @@ component {
565565

566566
public array function getUserGroups(required string userID) {
567567
var token = getAuthToken();
568-
if (!userID.startsWith("auth0|")) {
569-
userID = "auth0|" & userID;
568+
if (!arguments.userID.startsWith("auth0|")) {
569+
arguments.userID = "auth0|" & arguments.userID;
570570
}
571571
var result = makeRequest(
572572
method = "GET",

0 commit comments

Comments
 (0)