send code
This commit is contained in:
@@ -23,7 +23,8 @@ class SendCodeView(BaseView):
|
||||
print(f"Отправлен код для {username}", code)
|
||||
user.userinfo.code = code
|
||||
user.userinfo.save()
|
||||
send_to_queue("telegram", {
|
||||
send_to_queue("notification", {
|
||||
"type": "send_code",
|
||||
"chat_id": user.userinfo.telegram_chat_id,
|
||||
"text": "Код для входа в сервис: " + str(code)
|
||||
})
|
||||
|
Reference in New Issue
Block a user