xtrime-ru / TelegramApiServer

Fast, simple, async php telegram api server: MadelineProto + Amp HTTP Server
https://tg.i-c-a.su
MIT License
575 stars 129 forks source link

complete2falogin #121

Closed litasskuris closed 1 year ago

litasskuris commented 1 year ago

Hi. Complete2falogin doesn`t work with characters but only with numbers. Can you fix it? Login session comes to fall after sending character 2FA pass

xtrime-ru commented 1 year ago

Im using 2fa passord with letters and digits. It works ok. What kind of error you get and how you call this method?

litasskuris commented 1 year ago

http://127.0.0.1:9503/api/users/killer/complete2falogin?password=z#fdgB45 I`ve gotten a "Password Hash is invalid" error

xtrime-ru commented 1 year ago

# is special character. You need to escape it. Use urldecode or http_build_query. Or use POST and json.

litasskuris commented 1 year ago

ok. Thanks. urldecode is doing well