Commit graph

1547 commits

Author SHA1 Message Date
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
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
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
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
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
relesgoe
1ee1068ec0 Add libcurl 7.70.0 2020-05-21 10:40:02 -07:00
relesgoe
4a1b395110 Define 'NOMINMAX' if compiler is Visual Studio 2020-05-20 00:00:48 -07:00
relesgoe
c7b9707a7f Return -1 instead of 0 in account_set_strattr() when 'account' is a nullptr 2020-05-20 00:00:12 -07:00
relesgoe
36fcd7dbbe Update {fmt} to 6.2.1 2020-05-19 02:49:58 -07:00
relesgoe
7bfa248f63 Add zlib 1.2.11 include headers and libraries, inform CMake to use these files if ZLIB_ROOT is not already set by the user 2020-05-19 00:35:07 -07:00
RElesgoe
79b2ab6b5e
Update appveyor.yml 2020-05-17 17:26:00 -07:00
RElesgoe
7c78536025
Update appveyor.yml 2020-01-08 02:07:36 -08:00
RElesgoe
42ad0865d7
Update appveyor.yml 2020-01-07 17:58:40 -08:00
RElesgoe
7e05344e58
Compile to 64-bit binaries 2020-01-07 17:02:54 -08:00
RElesgoe
f06269330f
Update FindMySQL.cmake 2020-01-07 16:26:50 -08:00
RElesgoe
82ba84aee9
Update CMakeLists.txt 2020-01-07 02:47:04 -08:00
RElesgoe
32d67055d3
Update FindMySQL.cmake 2020-01-07 01:38:16 -08:00
RElesgoe
cc371941aa
Update CMakeLists.txt 2020-01-06 23:47:12 -08:00
RElesgoe
98621a361a
Use environment variable ProgramW6432 when searching for MySQL files/paths
This will force a 32-bit CMake binary on a 64-bit host to look in the C:/Program Files/ directory instead of the C:/Program Files (x86)/ directory.
2020-01-06 23:30:08 -08:00
RElesgoe
5092fe07ae
Use FindMySQL.cmake from github.com/facebook/hhvm 2020-01-06 21:01:20 -08:00
RElesgoe
1f746909c1
Update appveyor.yml 2020-01-06 20:18:14 -08:00
RElesgoe
2876017b7d
Update appveyor.yml 2020-01-06 20:06:16 -08:00
RElesgoe
305ccfb2b8
Temporarily delete build cache 2020-01-06 19:53:04 -08:00
cen1
d4a4c2d39c
Merge pull request from BNETDocs/develop
Change bnftp to exit success when successful
2020-01-04 02:53:21 +01:00
Carl Bennett
5188f4e555 Change bnftp to exit success when successful 2020-01-03 11:22:02 -06:00
RElesgoe
1af4a3ebbc
Update appveyor.yml 2019-12-18 01:32:49 -08:00
RElesgoe
043dd8a799
Update appveyor.yml 2019-12-18 00:35:07 -08:00