Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: chrome/browser/resources/chromeos/login/offline_ad_login.js

Issue 2653913002: Check username validity in the FakeAuthPolicyClient (Closed)
Patch Set: Comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/chromeos.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/offline_ad_login.js
diff --git a/chrome/browser/resources/chromeos/login/offline_ad_login.js b/chrome/browser/resources/chromeos/login/offline_ad_login.js
index f722ecf1f85e6f40e10135a3ac3da9a88f99d79c..6c202bc0485dd5a3109fd949f4867a08f34134b6 100644
--- a/chrome/browser/resources/chromeos/login/offline_ad_login.js
+++ b/chrome/browser/resources/chromeos/login/offline_ad_login.js
@@ -124,6 +124,8 @@ Polymer({
onSubmit_: function() {
if (this.showMachineInput && !this.$.machineNameInput.checkValidity())
return;
+ if (!this.$.userInput.checkValidity())
+ return;
if (!this.$.passwordInput.checkValidity())
return;
var user = /** @type {string} */ (this.$.userInput.value);
« no previous file with comments | « no previous file | chromeos/chromeos.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698