This commit is contained in:
Egor Matveev
2022-03-26 16:58:28 +03:00
parent c1ae83f27a
commit f040151b68
4 changed files with 20 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ class SendCodeView(BaseView):
"message": "Пользователя с таким именем не существует",
}
code = randrange(10000, 100000)
print(code)
user.userinfo.code = code
user.userinfo.save()
notify(user, "any", "Код для входа в сервис: " + str(code))