don't show login pixel with pending otp
closes #CORE-2145 Change-Id: I11adbcc0be236325db0ebf4f4e8a94cbe7468d15 Reviewed-on: https://gerrit.instructure.com/172693 Reviewed-by: Rob Orton <rob@instructure.com> Tested-by: Jenkins QA-Review: James Williams <jamesw@instructure.com> Product-Review: James Williams <jamesw@instructure.com>
This commit is contained in:
parent
3faa672091
commit
03ed1fcbb8
|
@ -24,6 +24,7 @@ module InstFS
|
|||
|
||||
def login_pixel(user, session, oauth_host)
|
||||
return if session[:oauth2] # don't stomp an existing oauth flow in progress
|
||||
return if session[:pending_otp]
|
||||
if !session[:shown_instfs_pixel] && user && enabled?
|
||||
session[:shown_instfs_pixel] = true
|
||||
pixel_url = login_pixel_url(token: session_jwt(user, oauth_host))
|
||||
|
|
Loading…
Reference in New Issue