Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update service.py #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update service.py #44

wants to merge 1 commit into from

Conversation

pan0303
Copy link

@pan0303 pan0303 commented Dec 9, 2020

验证邮箱是否真实有效并发送邮件或提示

author = Author(mail=email, is_banned=False)
db.session.add(author)

if sendMailAndVerify(email):
Copy link
Member

Choose a reason for hiding this comment

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

@pan0303 This checks email validity before adding the author. Why don't you also check email validity before one posts an article? -Hui

@pan0303
Copy link
Author

pan0303 commented Dec 26, 2020 via email

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