-
-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve: https/http login #647
Conversation
a4564ac
to
915d3f0
Compare
This comment was marked as outdated.
This comment was marked as outdated.
I've got problem with compiling pr. |
958fc17
to
f1ec7b3
Compare
@Piksel91 test now. I don`t use windows, so I just saw that the build was failing after opening the PR. |
e301193
to
eb13414
Compare
@Costallat still the same problem. |
How you are building on windows? Are you using the cmake to build? Because all checks are working now and they build using cmake |
Im using Visual Studio and trying build with Run as always. |
Humm, I don't know how VS works in that mode, try to see if there is same cmake options on the VS. |
I don't know how to do that. WIthout this or everything works fine in visual studio. Probably you add something what VS need but I dont have. Edit1: I fix Visual Studio problem. I had to reinstall vcpkg and re-run VIsual Studio then all necessary packages was downloaded. Edit2: Visual Studio build problem x64. |
I asked here to someone try to fix the build from Visual Studio as I don't have it here. |
Visual Studio showing error on this part of code:
|
@Piksel91 |
now build is ok. It was tested for gunzodus ots - 13.20 Tibia. I used in my opinion correct service login: On this configuration I receive information like below: Configuration: Information: If I used check box "unsafe login" is still the same error. But when I add 80 port I receive somthing like below, but nothing happend more. Of course my account name is e-mail. |
If the URL is https you have to use port 443 The error is strange too, I will see if I can add more information, because Success(no error) doesn't help huauaa |
It's not possiable to login on gunzo/ezo 13.20. I don't know correct link or posibilities to connect. |
The login address is: https://www.gunzodus.net/game/login/1290?nservice.php I got from their client, but I didn't tested Also you can send them an email asking what we need to do to be able to login on their server using OTC. |
@Costallat atm their client is 13.20 then login service is |
The client version is 1320, but the login link that it uses is the one that I sent, I got direct from their 13.20 client. I don't think that they have something so special, because you can't change the official client in that way, it would be very hard to do that, we just need to understand what they expect to receive, so we can add here. With that information I can work to see how to add that here, maybe they are expecting to be a POST in FORM format, but I tried to test a few times but I don't have too much time to keep testing all possibilities, so I think that if you send an email asking that or asking that someone from their team add those information here I can see what I can do. |
491d2d1
to
4274108
Compare
investigating more details to improve the fix Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Improve http login: - Use SSL/HTTPS by default, and only try with HTTP when unsafe login is enabled - Fix trying to login multiple times to display multiple result windows - Split lua functions - Add new lib to handle with the HTTP requests Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Also renamed unsafe variable to http to make the code more readable. Signed-off-by: Renato Foot <[email protected]>
- Check if it's https or http to define the port if it is not set - Save/Load http login check box - Add more PT translations Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
Signed-off-by: Renato Foot <[email protected]>
4274108
to
e07539e
Compare
Signed-off-by: Renato Foot <[email protected]>
@Costallat I asked but withoud answer... |
This PR is stale because it has been open 45 days with no activity. |
I don't use versions that require httplogin, but change in client_serverlist causes bug and crash, ERROR: lua function callback failed: LUA ERROR:
posible fix function EnterGame.setHttpLogin(httpLogin)
if type(httpLogin) == "boolean" then
enterGame:getChildById('httpLoginBox'):setChecked(httpLogin)
else
enterGame:getChildById('httpLoginBox'):setChecked(#httpLogin > 0)
end
end 2024-03-20.16-47-39.mp4 |
…#736) * fix: crash game_entergame if httpLoginBox is boolean ( #647 ) * fix: game_entergame if host nil windows is hidden * temp fix: game_entergame windows is not centered the original bug is in I don't have how to test I don't use token EnterGame.toggleAuthenticatorToken EnterGame.toggleStayLoggedBox
Description
Improve HTTPS/HTTP login with JSON.
Behavior
Actual
Not working very well, using functions that should be used to send POST/FORM to send JSON, manually mounting the request, etc
Expected
Use the right things and use a library to handle with the requests.
Type of change
Please delete options that are not relevant.
How Has This Been Tested
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist