OAuth authorization page: hide mobile web banner

This is confusing when someone's trying to authorize a third-party app.
This commit is contained in:
Chad Birch
2015-10-04 22:21:20 -06:00
parent 24681c0819
commit d0d63f3bc1

View File

@@ -333,7 +333,8 @@ class Reddit(Templated):
if getattr(self, "show_newsletterbar", True):
self.newsletterbar = NewsletterBar()
if c.render_style == "compact":
if (c.render_style == "compact" and
getattr(self, "show_mobilewebredirectbar", True)):
self.mobilewebredirectbar = MobileWebRedirectBar()
show_locationbar &= not c.user.pref_hide_locationbar
@@ -1393,6 +1394,8 @@ class RegistrationInfo(Templated):
class OAuth2AuthorizationPage(BoringPage):
show_mobilewebredirectbar = False
def __init__(self, client, redirect_uri, scope, state, duration,
response_type):
if duration == "permanent":