Skip to content

Commit

Permalink
Only show login success if account creation was user initiated (Mozil…
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and Alexandre Lissy committed Jan 21, 2020
1 parent 8bc7e9e commit 4dca583
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ public void onLoggedOut() {

@Override
public void onAuthenticated(@NonNull OAuthAccount oAuthAccount, @NonNull AuthType authType) {
if (authType != AuthType.Existing.INSTANCE) {
if (authType == AuthType.Signin.INSTANCE || authType == AuthType.Signup.INSTANCE) {
Session session = mFocusedWindow.getSession();
addTab(mFocusedWindow, mAccounts.getConnectionSuccessURL());
onTabsClose(new ArrayList<>(Collections.singletonList(session)));
Expand Down

0 comments on commit 4dca583

Please sign in to comment.