Skip to content

Пример для двухфакторной аутентификации#61

Merged
python273 merged 4 commits intopython273:masterfrom
skar404:master
Apr 4, 2017
Merged

Пример для двухфакторной аутентификации#61
python273 merged 4 commits intopython273:masterfrom
skar404:master

Conversation

@skar404
Copy link
Copy Markdown
Contributor

@skar404 skar404 commented Apr 4, 2017

Пример для двухфакторной аутентификации

Comment thread examples/auth_handler.py Outdated


def auth_handler():
""" При возникновении двухфакторной аутентификации вызывается эта функция.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Думаю лучше убрать "возникновении" и точку не нужно в конце

Comment thread examples/auth_handler.py Outdated
# Если 1 то сохранить, 0 не сохранять.
remember_device = 1

# Отправляет запрос
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот коммент не нужон

@python273
Copy link
Copy Markdown
Owner

Еще переименуй файл в two_factor_auth.py

Comment thread examples/two_factor_auth.py Outdated
# Код двухфакторной аутентификации
key = input("Enter authentication code: ")
# Если: 1 - сохранить, 0 - не сохранять.
remember_device = 1
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И вместо 1/0 лучше True/False

@python273 python273 merged commit 11de220 into python273:master Apr 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants