Added backslash to the forbidden chars
This commit is contained in:
parent
77be64ed4b
commit
74844da4ae
@ -2,7 +2,7 @@ import string
|
|||||||
|
|
||||||
from .decrypted_account import DecryptedAccount
|
from .decrypted_account import DecryptedAccount
|
||||||
|
|
||||||
FORBIDDEN_CHARS = frozenset("`\n")
|
FORBIDDEN_CHARS = frozenset("`\n\\")
|
||||||
PUNCTUATION = frozenset(string.punctuation).difference(FORBIDDEN_CHARS)
|
PUNCTUATION = frozenset(string.punctuation).difference(FORBIDDEN_CHARS)
|
||||||
|
|
||||||
|
|
||||||
|
@ -658,7 +658,7 @@ async def _import3(
|
|||||||
|
|
||||||
async def gen_password(bot: AsyncTeleBot, mes: Message) -> None:
|
async def gen_password(bot: AsyncTeleBot, mes: Message) -> None:
|
||||||
await base_handler(bot, mes)
|
await base_handler(bot, mes)
|
||||||
# Generate 10 passwords and put 'em in the backticks
|
# Generate 10 passwords and put them in the backticks
|
||||||
passwords = (f"`{generate_password.gen_password()}`" for _ in range(10))
|
passwords = (f"`{generate_password.gen_password()}`" for _ in range(10))
|
||||||
text = (
|
text = (
|
||||||
"Пароли:\n"
|
"Пароли:\n"
|
||||||
|
Reference in New Issue
Block a user