Open PromiseFru opened 3 weeks ago
@PromiseFru When is this prompt made? Does the gRPC return a method to help know the password is required? If yes please share that thanks
@PromiseFru When is this prompt made? Does the gRPC return a method to help know the password is required? If yes please share that thanks
@sherlockwisdom, the prompt occurs at the code exchange level. After exchanging the code for the first time from Telegram, if two-step verification is enabled, the user is prompted for the password they set for two-step verification and the same verification code initially sent.
The publisher provides the password
field at the exchange level in the PNBA code function for this purpose. The error message in the return payload contains a message
indicating that the password is required, and the success
key in the return payload will be False
.
@PromiseFru Thanks, does the Telegram API provide any means of knowing if account requires a password?
@PromiseFru Thanks, does the Telegram API provide any means of knowing if account requires a password?
No, the Telegram API does not provide a direct way to determine if an account requires a password for two-step verification. You'll only find out at the code exchange level when the user is prompted for the password if two-step verification is enabled.
Relying on failure to determine if password is a hack, we should use a 2 step then to solve it. Please let me know when we have one so the apps start integrating
Relying on failure to determine if password is a hack, we should use a 2 step then to solve it. Please let me know when we have one so the apps start integrating
@sherlockwisdom, the publisher now indicates whether 2-step verification is enabled in the ExchangePNBACodeAndStoreResponse
through the two_step_verification_enabled
field.
https://github.com/smswithoutborders/SMSWithoutBorders-Publisher/blob/main/docs/grpc.md#response-4
The RelaySMS app fails to prompt for the required password when storing a Telegram account with two-step verification enabled. Instead, it repeatedly outputs the following error:
Steps to Reproduce:
Expected Behavior:
An input field should appear to allow the user to enter their password when two-step verification is enabled on their Telegram account.