Add path to http request logging, add email to local account creation through web endpoint

This commit is contained in:
Akkadius 2019-08-04 03:11:30 -05:00
parent 63e1599e9b
commit 5ff0f4851e

View File

@ -76,7 +76,7 @@ namespace LoginserverWebserver {
return; return;
} }
bool account_created = AccountManagement::CreateLocalLoginServerAccount(username, password); bool account_created = AccountManagement::CreateLocalLoginServerAccount(username, password, email);
if (account_created) { if (account_created) {
response["message"] = "Account created successfully!"; response["message"] = "Account created successfully!";
} }
@ -218,10 +218,11 @@ namespace LoginserverWebserver {
} }
LogDebug( LogDebug(
"Authentication Request | remote_address [{0}] user_agent [{1}] authorization_key [{2}]", "Authentication Request | remote_address [{0}] user_agent [{1}] authorization_key [{2}] request_path [{3}]",
user_token.remote_address, user_token.remote_address,
user_token.user_agent, user_token.user_agent,
authorization_key authorization_key,
request.path
); );
return user_token; return user_token;