Commit graph

1588 commits

Author SHA1 Message Date
relesgoe
e79338617b Fix incorrect comparison to return value of call to account_get_email_verified() in _handle_finger_command() 2020-08-08 13:23:56 -07:00
relesgoe
80dcead113 Update /finger command to show whether the account's email is verified or not 2020-08-08 10:46:17 -07:00
relesgoe
4b42777409 Add two more localization strings in common.xml 2020-08-08 10:40:49 -07:00
relesgoe
8e2aa1f129 If account email verification is enabled, automatically send verification email whenever an email is set/changed 2020-08-08 10:12:19 -07:00
relesgoe
930838484c Fix incorrectly named parameter for account_set_email_verification_code() 2020-08-08 09:55:00 -07:00
relesgoe
7df9d21cf1 Fix incorrect parameter in the call to account_set_email_verified() in _handle_end_apiregtag() 2020-08-08 09:45:56 -07:00
RElesgoe
fadd8927b0
Add ${CURL_LIBRARIES} to CMakeLists.txt in src/bnetd 2020-07-25 17:30:24 -07:00
RElesgoe
3b434de746
Merge branch 'develop' into feature-email 2020-07-25 11:37:46 -07:00
relesgoe
689b75b885 Hide undesired 'I' character produced by message_format_line() when outputting WC3 MOTD. #408 2020-07-25 11:21:54 -07:00
relesgoe
dd9d607a9e Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-07-25 10:24:36 -07:00
relesgoe
49e90607b4 If the included Zlib is used to build the bnetd target, install the included Zlib DLL 2020-07-25 10:24:15 -07:00
relesgoe
760e88847f Rename smtp_ca_cert_store to smtp_ca_cert_store_file 2020-07-25 09:37:22 -07:00
relesgoe
5553cbfb1e Implement fetching CA certificate store files from a remote URL periodically based on smtp_ca_cert_store_remote_url and smtp_ca_cert_store_fetch_interval config values 2020-07-25 09:34:54 -07:00
HarpyWar
d14ea6f053 fix for previous 355147842b (comments) 2020-07-04 00:45:50 +03:00
relesgoe
55f62f1b44 Change addrlist_append() to return 0 if at least 1 addr was appended to the given addrlist 2020-06-17 01:46:28 -07:00
relesgoe
981d391a3e Refactor smtp_server_url to be of type std::string 2020-06-13 08:13:06 -07:00
relesgoe
e400a9c1b2 Replace magic number with a macro constant in smtp_config() 2020-06-13 08:11:23 -07:00
relesgoe
f55fc4fda8 Add additional comments in smtp.cpp 2020-06-13 08:06:18 -07:00
relesgoe
2a648f3ec2 Add additional error checking in smtp_config(), change smtp_init() to take in SMTP data and internally pass it to smtp_config() 2020-06-13 07:51:52 -07:00
relesgoe
a0470e83e6 Initial multi-threading support for SMTP 2020-06-11 16:27:54 -07:00
HarpyWar
75c2efd11d
Update appveyor.yml
Switch configuration to RelWithDebInfo and distribute .pdb files in a single archive with binaries
2020-06-05 04:25:40 +03:00
HarpyWar
265f8b9b43 localize a default clan motd text 2020-06-04 21:13:43 +03:00
relesgoe
355147842b Continue appending the rest of the given addresses even if creating one addr fails. #403 2020-05-29 14:42:19 -07:00
relesgoe
e0e95bb748 Fixed bug that occurred when _find_string returned NULL 2020-05-29 13:46:32 -07:00
relesgoe
b5d8be8271 Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-05-29 13:43:24 -07:00
relesgoe
afcd2a9403 Fix loading WarCraft 3 MOTD 2020-05-29 13:43:13 -07:00
HarpyWar
60f0751132 fix for support mysql 8.x https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html 2020-05-24 19:33:24 +03:00
relesgoe
c37269f5ed Merge branch 'feature-email' of https://github.com/pvpgn/pvpgn-server into feature-email 2020-05-23 16:31:20 -07:00
relesgoe
333e553f7e Add "verify_account_email_from_name" option in bnetd.conf to support a name in the "From" field in emails 2020-05-23 16:31:00 -07:00
relesgoe
884e804430 Add "verify_account_email_from_name" option in bnetd.conf to support a name in the "From" field in emails 2020-05-23 16:20:40 -07:00
relesgoe
31d24a3445 Change account_generate_email_verification_code() to generate a 6 digit random number between 100000 and 999999 2020-05-23 16:03:55 -07:00
relesgoe
3f803056c4 Modify error message in _handle_email_command() for "/verify get" command 2020-05-23 15:52:11 -07:00
relesgoe
0ec5ccabfd Fixed bug where {account_email_verification_expiration} in email_verification.conf got formatted into the expiration date instead of the number of minutes left 2020-05-23 15:43:52 -07:00
relesgoe
4230227731 Fixed bug that occurred when _find_string returned NULL 2020-05-23 15:39:34 -07:00
relesgoe
f0ff5d5ad2 Convert tabs to spaces in common.xml 2020-05-23 14:40:27 -07:00
relesgoe
274a9069b2 Add return true statement to end of smtp_config() 2020-05-23 14:39:36 -07:00
relesgoe
38778f5095 Introduced smtp_config() to allow pvpgn to call smtp_init() and smtp_cleanup() once throughout the life of the program 2020-05-23 14:08:49 -07:00
relesgoe
8361ad8576 On error, return 0 instead of -1 in account_get_email_verification_expiration() 2020-05-23 14:07:30 -07:00
HarpyWar
af1cc79a3f remove dead tracker https://github.com/pvpgn/pvpgn-server/issues/403#issuecomment-631733046 2020-05-23 12:55:55 +03:00
relesgoe
b2f0cb79e3 Only set CMake policy CMP0074 if policy is recognized by CMake 2020-05-22 03:18:13 -07:00
relesgoe
edd5165f1b Create additional subdirectory for libcurl headers so that curl headers can be included the conventional way 2020-05-22 03:17:05 -07:00
relesgoe
c7387d83c9 Set "BNET\\acct\\email\\verified" attribute to false whenever email address is changed for an account 2020-05-22 02:49:44 -07:00
relesgoe
c81448e2b9 Enhanced validation for /email command 2020-05-22 02:16:11 -07:00
relesgoe
d2c4b66d4c Fix bug where sent emails were empty. 2020-05-22 02:02:02 -07:00
relesgoe
306a58f9b4 Fix error checking in account_verify_email() 2020-05-22 01:49:25 -07:00
relesgoe
f4adec2a06 Check if expiration_date is a nullptr before proceeding in account_set_email_verification_code() 2020-05-22 01:48:57 -07:00
relesgoe
6f4f749243 Fixed duplicate IDs in common.xml 2020-05-22 01:48:25 -07:00
relesgoe
0c87fb6a9d Merge with upstream 2020-05-21 10:45:40 -07:00
relesgoe
e543963186 Add /email command 2020-05-21 10:43:43 -07:00
relesgoe
8daa602a68 Add SMTP client code and email verification functions 2020-05-21 10:42:57 -07:00