-
Notifications
You must be signed in to change notification settings - Fork 123
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
Pin Code not working Packetver: 20130618 #448
Comments
@redpolline Do you also have the same issues on your packetver? I can't test it on my server since it is too old. |
Sorry for not getting to this until now. I've been away all week.
Basically, I didn't know what one of the packets for pincodes did as it was deprecated before my PACKETVER. (rAthena won't send it in my case.) Can you send the full log? What we really need is the received packets from the server and the order they were sent in.
The pincode it prints in the console is the encrypted pin code. If you know the userSeed that was sent, (check the logs), you can decrypt it back into the user's original pincode. (Although, you should be able to tell that it's your pin code. Especially if you have two digits in your pin that are the same. As they'll be the same digits in the encrypted version.)
I may have screwed up the order for what password box is supposed to be used.... That should just be cosmetic though. It should still work if you type in the expected code.
I'm not sure what that button is supposed to be. Maybe it's the unused Exit button? (That should be hidden automatically though....) Can anyone translate it? |
Unfortunately, my server is too new. The screenshots indicate that login packet state 7 was sent by the server. Which according to rAthena was removed in PACKETVER >= 20180124. |
OK, that's the unused exit button. Your client files just don't have that button translated for some reason. (Out of date?) I'll send a patch to disable it on all packetvers, as it's not wired up to anything to begin with. |
Handle pincode state 7 from the server. Automatically send packet 0x8c5 upon initial entry to char server, if PACKETVER is within the correct range.
@AtomixRO Did the recent commit fix your issue? |
@redpolline Sorry for the long wait, been too busy.
|
Same issue here. Can't make new pincode and can't login either. This original ui is pretty unintuitive with the lower case "change" to begin with, but the random fileds activating and the 3 popups make it a real a chaos :D I don't even know what I am supposed to do :D |
Click on OK 3 times in a row, type your new pin code and then click on Confirm, done. :D |
the problem is if you use the first digit 0 . it is removed in the code here
before the encryption code
in the file |
Yeah, that's just a cosmetic bug.... I didn't realize it when I wrote the code for setting the values from the buttons. Basically, "Confirm Password" and "Password" are switched in the code. The data put into them (incorrectly) still gets used properly, but it does look wrong from the user's perspective. That's due to the cosmetic bug above. (It should be on password.)
That's due to there being no field selection code in the JS handler. I.e. If you click on the password box it doesn't do anything. That's because I didn't write any code to handle changing the current input field from the GUI. It's done programmatically based on which buttons the user clicks on and which response packets are sent from the login server. Reasons being:
Cosmetic bug strikes again. That's the field select changing what input field is active. (It doesn't have any code to handle the input field that isn't used for a the new password flow.)
Those message windows should be "modal" windows. I.e. (You shouldn't be able to do anything but click on their OK button when they are on the screen.) The PincodeWindow doesn't have a disable flag to block input when a message is displayed. So you can get multiple message windows if you don't close them. (Something else that needs to be fixed.) All that being said, the original issue of "not working Packetver: 20130618" is fixed. Maybe we should close this bug and open new ones for the other stuff. |
Hey, that's graphics pulled from the grf. I didn't translate them. 😜 Fun fact if you highlight the change button without clicking on it, it becomes a "charge" button instead. 😄
Yeah, I need to clean it up. Although to be fair, the official client doesn't tell you much either, and I got lost the first time I used it. The normal input flow is still there however. So if your used to inputting a Pincode in the official client, and able to ignore the graphical glitches in the current UI, you'll still complete the process successfully. Even if that process doesn't look right. But some people can't handle the graphics being wrong. (I would know, it's the reason why I set confirm password as the default field to begin with. Having the top field being the input field for the default login process didn't look right to me. Of course, that was before I knew the correct process from the official client.... 😊) |
I know the UI looking stupid is not your fault. The translation project needs some hardcore supervision because the translations are sometimes really bad and there are alot of typos and wrong letter casing. But the original UIs are bad as well. Non-responsive 90's tech. They just look bad and feel bad and not intuitive. It's a shame we have to mimic them. At least we can have plugins that improve on these. Thx for the fix anyways! @AtomixRO Can you test the fix sometime? |
There is still an error. in |
I corrected this part in e44555f but the new pin creation is still not working correctly |
I don't really get why |
There is another issue. in
Packet |
It shouldn't be called externally. If it is that's a bug. (It would be a leftover from an earlier revision of the code. In reality, selectInput() shouldn't even be exported from PincodeWindow at all, and nothing external should be calling it.) As for the zero arg bit, that was just my way of saying "reset to initial input field." (Which helps given I need to change the field order. I'll send a commit later for that.)
Yes, based on the tests I made, the older packetver expects the client to request the SECOND_PASSWD_LOGIN packet from the server. In those packetvers if we don't send that request to the server, then the pincode window doesn't get initialized properly. That functionality should be gated by a packetver check however. So, I'm not sure why it would be triggering on packetvers that don't need it. It doesn't on my end with the tests I've made, but then again I don't have proper full clients to test those packetvers on my end. (The patch I sent was based on a frankinclient made with a 2021 grf against an rAthena built with the older packetver. I can't test with an original client.) |
Thx! Gonna test tmr |
I tested the update. @redpolline
|
Describe the bug
Feature gets you straight to Verify Pin instead of Password for old accounts that works.
Also Pin code in console is wrong compared to the pin code which has been typed but doesn't mention it's a wrong pincode.
Change password gets stuck on Password & Confirm Password, can't get to "New Password" field.
Korean button shouldn't be displayed on this packet version.
Screenshots (if applicable)
Typing pincode after login:
Change Password:
Incorrect pincode pinted and I get an error for wrong pincode if I type the wrong one.
Packet/Client version
20130618
Browser/device info
The text was updated successfully, but these errors were encountered: