-
Notifications
You must be signed in to change notification settings - Fork 140
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
Support requiring user to pass SMS verification to post #108
base: master
Are you sure you want to change the base?
Conversation
This should simply be implemented as "require SMS verification to post". |
869f7b0
to
fb63a83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I performed manual spelling verification against the code changes and produced some manual reports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please solve all the review comments
3b20930
to
a97886c
Compare
Rebase, not merge in master branch. |
fb63a83
to
ab5a1a3
Compare
Signed-off-by: Pichu Chen <[email protected]>
ab5a1a3
to
473e004
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found minor spelling issues.
/* | ||
* Check if user phone number is verified by sms | ||
* | ||
* This function check if current user has already register their |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check (1st-person or plural or infinitive v.) → checks (3rd-person singular v.)
* | ||
* Please note that, ptt system might have two different users with the same userid, | ||
* but this won't happen at the same time. Therefore. we need to use firstlogin as the second | ||
* parameter. And, ptt only accept phone registrations from Taiwan since July 2021 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And (conj.) → Also (adv.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, accept (1st-person or plural or infinitive v.) → accepts (3rd-person singular v.).
Requirement:
Changes:
is_taiwan_phone()
which determine if current user is registered phone number.const char * postperm_msg(const char *bname)
.BRD_NEEDS_SMS_VERIFICATION (0x20000000)
for this function.Screenshots:
TBD, Still try to build without verifydb lib
Remark:
USE_SMS_VERIFICATION
and flagUSE_VERIFYDB
when use this function.TODO: