Commit b620cbb5 authored by Rakesh Soma's avatar Rakesh Soma Committed by Commit Bot

Disable force reset password for AD accounts

Bug: 979927
Change-Id: Ie35300e7fce923490c4885582d2b1ab4b5b53ea8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1688617Reviewed-by: default avatarTien Mai <tienmai@chromium.org>
Commit-Queue: Rakesh Soma <rakeshsoma@google.com>
Cr-Commit-Position: refs/heads/master@{#675684}
parent b123382e
...@@ -2153,11 +2153,16 @@ void CGaiaCredentialBase::DisplayPasswordField(int password_message) { ...@@ -2153,11 +2153,16 @@ void CGaiaCredentialBase::DisplayPasswordField(int password_message) {
GetStringResource(password_message).c_str()); GetStringResource(password_message).c_str());
events_->SetFieldState(this, FID_CURRENT_PASSWORD_FIELD, events_->SetFieldState(this, FID_CURRENT_PASSWORD_FIELD,
CPFS_DISPLAY_IN_SELECTED_TILE); CPFS_DISPLAY_IN_SELECTED_TILE);
events_->SetFieldState(this, FID_FORGOT_PASSWORD_LINK, // Request force password change wouldn't work on a domain joined
CPFS_DISPLAY_IN_SELECTED_TILE); // machine as it requires domain admin role privileges to communicate
events_->SetFieldString( // with the domain controller whereas GCPW only has SYSTEM privilege.
this, FID_FORGOT_PASSWORD_LINK, if (!OSUserManager::Get()->IsUserDomainJoined(get_sid().m_str)) {
GetStringResource(IDS_FORGOT_PASSWORD_LINK_BASE).c_str()); events_->SetFieldState(this, FID_FORGOT_PASSWORD_LINK,
CPFS_DISPLAY_IN_SELECTED_TILE);
events_->SetFieldString(
this, FID_FORGOT_PASSWORD_LINK,
GetStringResource(IDS_FORGOT_PASSWORD_LINK_BASE).c_str());
}
events_->SetFieldInteractiveState(this, FID_CURRENT_PASSWORD_FIELD, events_->SetFieldInteractiveState(this, FID_CURRENT_PASSWORD_FIELD,
CPFIS_FOCUSED); CPFIS_FOCUSED);
events_->SetFieldSubmitButton(this, FID_SUBMIT, events_->SetFieldSubmitButton(this, FID_SUBMIT,
......
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