Tweaking a few things oauth things.

This commit is contained in:
Michael Lazar
2015-09-20 19:54:41 -07:00
parent 2d7937945c
commit 6cc744bf91
12 changed files with 244 additions and 314 deletions

View File

@@ -239,7 +239,7 @@ class BaseController(object):
class BasePage(object):
"""
Base terminal viewer incorperates a cursor to navigate content
Base terminal viewer incorporates a cursor to navigate content
"""
MIN_HEIGHT = 10
@@ -351,11 +351,10 @@ class BasePage(object):
"""
if self.reddit.is_oauth_session():
self.reddit.clear_authentication()
self.oauth.clear_oauth_data()
return
self.oauth.authorize()
show_notification(self.stdscr, ['Logged out'])
else:
self.oauth.authorize()
@BaseController.register('d')
def delete(self):