From 918582c967326b53971fdf09400ed09cdaf23bcb Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Fri, 14 Apr 2023 00:21:59 -0600 Subject: [PATCH] auth: change wording of error when user terminates all sessions Signed-off-by: Sumner Evans --- mautrix_telegram/web/common/auth_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mautrix_telegram/web/common/auth_api.py b/mautrix_telegram/web/common/auth_api.py index c7a38357..08b6ffa4 100644 --- a/mautrix_telegram/web/common/auth_api.py +++ b/mautrix_telegram/web/common/auth_api.py @@ -349,7 +349,10 @@ class AuthAPI(abc.ABC): state="request", status=401, errcode="session_revoked", - error="Login cancelled because you terminated all of the sessions from your phone.", + error=( + "Please try again. Login cancelled because your other sessions were " + "terminated via the Telegram app." + ), ) except Exception as e: self.log.exception("Error sending password")