Add email verification #415

Merged
RElesgoe merged 37 commits from feature-email into develop 2020-08-08 14:25:00 -06:00

37 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
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