Commit ead24941 authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

cros: Disable online sign-in flow for user-adding screen

A lot of edge cases could happen during online signin. So disabling it
for the multiprofile user adding flow.

Fixed: 690187
Change-Id: Idce44f3ef3c63a9dbd9d9e32af07733cd317f836
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202805
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatarThomas Tellier <tellier@google.com>
Cr-Commit-Position: refs/heads/master@{#769624}
parent 85b55833
...@@ -1635,9 +1635,8 @@ cr.define('login', function() { ...@@ -1635,9 +1635,8 @@ cr.define('login', function() {
if (this.user.legacySupervisedUser && !this.user.isDesktopUser) { if (this.user.legacySupervisedUser && !this.user.isDesktopUser) {
this.showSupervisedUserSigninWarning(); this.showSupervisedUserSigninWarning();
} else { } else {
// Special case for multi-profiles sign in. We show users even if they // Disable online sign-in flow for user-adding screen.
// are not allowed per policy. Restrict those users from starting GAIA. if (Oobe.getInstance().displayType == DISPLAY_TYPE.USER_ADDING)
if (this.multiProfilesPolicyApplied)
return; return;
this.parentNode.showSigninUI(this.user.emailAddress); this.parentNode.showSigninUI(this.user.emailAddress);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment