mirror of
https://github.com/iamxvbaba/gramsrv.git
synced 2026-11-16 03:05:07 +03:00
0723cf5aa6
The QR login now finishes two-step verification without exposing or changing the password: - Drop the -password flag. Arguments are visible to other users through ps and stay in shell history. - Read TG_PASSWORD, matching TG_API_ID and TG_API_HASH. Otherwise prompt without echo on a terminal (golang.org/x/term v0.46.0, which needs the x/sys v0.48.0 already required), or read the first line of piped stdin. The generic PASSWORD and TG_2FA_PASSWORD fallbacks are gone. - Use the password exactly as given. A cloud password may start or end with spaces; only a piped line's terminator is removed. - Match SESSION_PASSWORD_NEEDED with tgerr.Is alone. It already sees through the error qrlogin wraps. - docs/giftfetch.md describes the 2FA step instead of saying the QR route needs no password. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0723cf5aa6
·
2026-11-01 16:21:43 +08:00
History