This commit is contained in:
Théo Piboubès
2015-08-20 13:24:34 +02:00
parent a15eaee258
commit 9e27bee7e6

View File

@@ -158,9 +158,10 @@ class OAuthTool(object):
elif self.final_error != 'error_placeholder': elif self.final_error != 'error_placeholder':
show_notification(self.stdscr, ['Authentication error']) show_notification(self.stdscr, ['Authentication error'])
return return
# Check if UUID matches obtained state # Check if UUID matches obtained state
# (if not, authorization process is compromised, and I'm giving up) # (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.']) show_notification(self.stdscr, ['UUID mismatch, stopping.'])
return return