Skip to content

Commit c13cd19

Browse files
committed
Add scary message to the login through web
1 parent 7e5488a commit c13cd19

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

hikka/web/root.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def _platform_emoji(self) -> str:
9191
else (
9292
"termux"
9393
if "com.termux" in os.environ.get("PREFIX", "")
94-
else "docker" if "DOCKER" in os.environ else "vds"
94+
else "docker"
95+
if "DOCKER" in os.environ
96+
else "vds"
9597
)
9698
)
9799
]
@@ -533,7 +535,10 @@ async def web_auth(self, request: web.Request) -> web.Response:
533535
(
534536
"🌘🔐 <b>Click button below to confirm web application"
535537
f" ops</b>\n\n<b>Client IP</b>: {ips}\n{cities}\n<i>If you did"
536-
" not request any codes, simply ignore this message</i>"
538+
" not request any codes, simply ignore this message</i>\n\n⚠️"
539+
" <b>Warning!</b> If you did not make any actions in the web"
540+
" interface, <b>do not click the button below</b>, as it might"
541+
" give the user on the other end the access to your account!"
537542
),
538543
disable_web_page_preview=True,
539544
reply_markup=markup,

0 commit comments

Comments
 (0)