Вопрос [C++] Saving a config into cloud.

Начинающий
Статус
Оффлайн
Регистрация
30 Янв 2021
Сообщения
2
Реакции[?]
0
Поинты[?]
0
How would you save a config into a cloud ? I don't want to login into database in cheat for security reasons so I made an PHP API for getting the config list and the config source itself but I don't have a clue on how to save the config.
 
Участник
Статус
Оффлайн
Регистрация
15 Янв 2021
Сообщения
500
Реакции[?]
311
Поинты[?]
101K
Maybe transmit the contents of the config with a POST request ? And parameters will be: user_id, config_content. On the sever you search user with him user_id and add config to profile. Ofc, you will need some kind of special token to verify who exactly the config entry will go to in order to avoid user_id substitution.
 
Keine panik!
Эксперт
Статус
Оффлайн
Регистрация
29 Апр 2020
Сообщения
812
Реакции[?]
417
Поинты[?]
49K
How would you save a config into a cloud ? I don't want to login into database in cheat for security reasons so I made an PHP API for getting the config list and the config source itself but I don't have a clue on how to save the config.
Same way you did loading.
Make another PHP request with config data and save it into database.
All the connections made only on your server, client can't access your database from its side.
 
Сверху Снизу