Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

Commit

Permalink
Quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo Piboubès committed Aug 20, 2015
1 parent a15eaee commit 9e27bee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rtv/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ def authorize(self):
elif self.final_error != 'error_placeholder':
show_notification(self.stdscr, ['Authentication error'])
return

# Check if UUID matches obtained state
# (if not, authorization process is compromised, and I'm giving up)
elif hex_uuid != self.final_state:
if hex_uuid != self.final_state:
show_notification(self.stdscr, ['UUID mismatch, stopping.'])
return

Expand Down

0 comments on commit 9e27bee

Please sign in to comment.