Skip to content

Commit

Permalink
trim whitespace in indieauth me and bluesky handle/password
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Feb 8, 2024
1 parent ba0e5ea commit c5cdfae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions oauth_dropins/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ class Callback(views.Callback):
OAuth callback stub.
"""
def dispatch_request(self):
handle = request.values['username']
password = request.values['password']
handle = request.values['username'].strip()
password = request.values['password'].strip()
state = request.values.get('state')

# get the DID (portable user ID)
Expand Down
2 changes: 1 addition & 1 deletion oauth_dropins/indieauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def redirect_url(self, state=None, me=None):

# TODO: unify with mastodon?
if not me:
me = request.values['me']
me = request.values['me'].strip()
parsed = urllib.parse.urlparse(me)
if not parsed.scheme:
me = 'http://' + me
Expand Down

0 comments on commit c5cdfae

Please sign in to comment.