diff options
author | FearlessTobi <thm.frey@gmail.com> | 2022-07-25 17:08:20 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2022-07-25 21:59:31 +0200 |
commit | 6a2dcc8b3d4ed0940e33d60fee701bcdb063eb6b (patch) | |
tree | b70962e3698930c5b06d777bd912caa89a912391 /src/web_service | |
parent | yuzu_cmd: Fix compilation (diff) | |
download | yuzu-6a2dcc8b3d4ed0940e33d60fee701bcdb063eb6b.tar yuzu-6a2dcc8b3d4ed0940e33d60fee701bcdb063eb6b.tar.gz yuzu-6a2dcc8b3d4ed0940e33d60fee701bcdb063eb6b.tar.bz2 yuzu-6a2dcc8b3d4ed0940e33d60fee701bcdb063eb6b.tar.lz yuzu-6a2dcc8b3d4ed0940e33d60fee701bcdb063eb6b.tar.xz yuzu-6a2dcc8b3d4ed0940e33d60fee701bcdb063eb6b.tar.zst yuzu-6a2dcc8b3d4ed0940e33d60fee701bcdb063eb6b.zip |
Diffstat (limited to 'src/web_service')
-rw-r--r-- | src/web_service/announce_room_json.cpp | 4 | ||||
-rw-r--r-- | src/web_service/verify_user_jwt.cpp | 4 | ||||
-rw-r--r-- | src/web_service/verify_user_jwt.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/web_service/announce_room_json.cpp b/src/web_service/announce_room_json.cpp index 082bebaa9..0aae8e215 100644 --- a/src/web_service/announce_room_json.cpp +++ b/src/web_service/announce_room_json.cpp @@ -54,7 +54,7 @@ static void to_json(nlohmann::json& json, const Room& room) { } static void from_json(const nlohmann::json& json, Room& room) { - room.verify_UID = json.at("externalGuid").get<std::string>(); + room.verify_uid = json.at("externalGuid").get<std::string>(); room.ip = json.at("address").get<std::string>(); room.information.name = json.at("name").get<std::string>(); try { @@ -116,7 +116,7 @@ WebService::WebResult RoomJson::Register() { auto reply_json = nlohmann::json::parse(result.returned_data); room = reply_json.get<AnnounceMultiplayerRoom::Room>(); room_id = reply_json.at("id").get<std::string>(); - return WebService::WebResult{WebService::WebResult::Code::Success, "", room.verify_UID}; + return WebService::WebResult{WebService::WebResult::Code::Success, "", room.verify_uid}; } void RoomJson::ClearPlayers() { diff --git a/src/web_service/verify_user_jwt.cpp b/src/web_service/verify_user_jwt.cpp index 3133dcbe2..2f294d378 100644 --- a/src/web_service/verify_user_jwt.cpp +++ b/src/web_service/verify_user_jwt.cpp @@ -35,9 +35,9 @@ std::string GetPublicKey(const std::string& host) { VerifyUserJWT::VerifyUserJWT(const std::string& host) : pub_key(GetPublicKey(host)) {} -Network::VerifyUser::UserData VerifyUserJWT::LoadUserData(const std::string& verify_UID, +Network::VerifyUser::UserData VerifyUserJWT::LoadUserData(const std::string& verify_uid, const std::string& token) { - const std::string audience = fmt::format("external-{}", verify_UID); + const std::string audience = fmt::format("external-{}", verify_uid); using namespace jwt::params; std::error_code error; auto decoded = diff --git a/src/web_service/verify_user_jwt.h b/src/web_service/verify_user_jwt.h index 6db74c208..ec3cc2904 100644 --- a/src/web_service/verify_user_jwt.h +++ b/src/web_service/verify_user_jwt.h @@ -17,7 +17,7 @@ public: VerifyUserJWT(const std::string& host); ~VerifyUserJWT() = default; - Network::VerifyUser::UserData LoadUserData(const std::string& verify_UID, + Network::VerifyUser::UserData LoadUserData(const std::string& verify_uid, const std::string& token) override; private: |