Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 986175f

Browse files
keianhzobluemarvin
authored andcommitted
Only show login success if account creation was user initiated (#2570)
1 parent 25619a2 commit 986175f

File tree

1 file changed

+1
-1
lines changed
  • app/src/common/shared/org/mozilla/vrbrowser/ui/widgets

1 file changed

+1
-1
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ public void onLoggedOut() {
893893

894894
@Override
895895
public void onAuthenticated(@NonNull OAuthAccount oAuthAccount, @NonNull AuthType authType) {
896-
if (authType != AuthType.Existing.INSTANCE) {
896+
if (authType == AuthType.Signin.INSTANCE || authType == AuthType.Signup.INSTANCE) {
897897
Session session = mFocusedWindow.getSession();
898898
addTab(mFocusedWindow, mAccounts.getConnectionSuccessURL());
899899
onTabsClose(new ArrayList<>(Collections.singletonList(session)));

0 commit comments

Comments
 (0)