From 930838484cd35c61c98029a1fdbfe7650e17b97a Mon Sep 17 00:00:00 2001 From: relesgoe <RElesgoe@users.noreply.github.com> Date: Sat, 8 Aug 2020 09:55:00 -0700 Subject: [PATCH] Fix incorrectly named parameter for account_set_email_verification_code() --- src/bnetd/account_wrap.cpp | 8 ++++---- src/bnetd/account_wrap.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bnetd/account_wrap.cpp b/src/bnetd/account_wrap.cpp index d520235..6fdeb48 100644 --- a/src/bnetd/account_wrap.cpp +++ b/src/bnetd/account_wrap.cpp @@ -2676,7 +2676,7 @@ namespace pvpgn return account_get_strattr(account, "email_verification\\code"); } - extern int account_set_email_verification_code(t_account* account, char const * expiration_date) + extern int account_set_email_verification_code(t_account* account, char const * verification_code) { if (account == nullptr) { @@ -2684,13 +2684,13 @@ namespace pvpgn return -1; } - if (expiration_date == nullptr) + if (verification_code == nullptr) { - eventlog(eventlog_level_error, __FUNCTION__, "got NULL expiration_date"); + eventlog(eventlog_level_error, __FUNCTION__, "got NULL verification_code"); return -1; } - return account_set_strattr(account, "email_verification\\code", expiration_date); + return account_set_strattr(account, "email_verification\\code", verification_code); } extern unsigned int account_get_email_verification_expiration(t_account* account) diff --git a/src/bnetd/account_wrap.h b/src/bnetd/account_wrap.h index 36d2fdb..ec5fc23 100644 --- a/src/bnetd/account_wrap.h +++ b/src/bnetd/account_wrap.h @@ -267,7 +267,7 @@ namespace pvpgn extern int account_get_email_verified(t_account* account); extern int account_set_email_verified(t_account* account, bool is_verified); extern char const* account_get_email_verification_code(t_account* account); - extern int account_set_email_verification_code(t_account* account, char const * expiration_date); + extern int account_set_email_verification_code(t_account* account, char const * verification_code); extern unsigned int account_get_email_verification_expiration(t_account* account); extern int account_set_email_verification_expiration(t_account* account, unsigned int expiration_date);