Skip to content

Commit

Permalink
totp: Fix call_env setting
Browse files Browse the repository at this point in the history
The 'nullable' field should be true.
  • Loading branch information
jpereira authored and alandekok committed Oct 6, 2023
1 parent de3f6a3 commit e31a2cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/rlm_totp/rlm_totp.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ typedef struct {

static const call_env_t call_env[] = {
{ FR_CALL_ENV_OFFSET("secret", FR_TYPE_STRING, rlm_totp_call_env_t, secret,
"&control.TOTP.Secret", T_BARE_WORD, false, false, false) },
"&control.TOTP.Secret", T_BARE_WORD, false, true, false) },

{ FR_CALL_ENV_OFFSET("key", FR_TYPE_STRING, rlm_totp_call_env_t, key,
"&control.TOTP.key", T_BARE_WORD, false, false, false) },
"&control.TOTP.key", T_BARE_WORD, false, true, false) },

{ FR_CALL_ENV_OFFSET("user_password", FR_TYPE_STRING, rlm_totp_call_env_t, user_password,
"&request.TOTP.From-User", T_BARE_WORD, false, false, false) },
"&request.TOTP.From-User", T_BARE_WORD, false, true, false) },

CALL_ENV_TERMINATOR
};
Expand Down

0 comments on commit e31a2cd

Please sign in to comment.