Skip to content

Commit

Permalink
totp.c fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fam007e committed Oct 1, 2024
1 parent 46372c1 commit be5a027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/totp.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
char* generate_totp(const char* secret) {
char otp[TOTP_DIGITS + 1];
time_t now = time(NULL);
oath_totp_generate(secret, strlen(secret), now, TOTP_STEP, OATH_TOTP_DEFAULT_FLAGS, TOTP_DIGITS, otp);
oath_totp_generate(secret, strlen(secret), now, TOTP_STEP, 0, TOTP_DIGITS, otp);
return strdup(otp);
}

Expand Down

0 comments on commit be5a027

Please sign in to comment.