Validate twitter accounts when submitting a new blog
authorMagnus Hagander <magnus@hagander.net>
Sat, 18 Nov 2017 14:54:19 +0000 (15:54 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 18 Nov 2017 14:55:02 +0000 (15:55 +0100)
commit1d0bc0629258fcea42cd614f68641c66c115a936
tree5dd58f52e99cde1989f59c9ab8a324d9b8a2aa23
parent3793e5039705f99a3b516fee11068cf5cd556188
Validate twitter accounts when submitting a new blog

Do this by connecting to the twitter API and actually validate both that
the account exists, and that it's not protected. Protected accounts will
cause the follower-sync script to keep trying over and over again for
following, and there's not any point in promoting those anyway.

This adds a dependency on requests_oauthlib, but that's already used in
other pgweb projects so shouldn't be a problem.
hamnadmin/hamnadmin/register/forms.py
hamnadmin/hamnadmin/settings.py