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

Side by Side Diff: chrome/browser/resources/chromeos/login/offline_ad_login.js

Issue 2519823006: Chromad: Add authentication flow (Closed)
Patch Set: Rename HandleAdAuth. Use system_api enums Created 3 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Polymer element for displaying AD domain joining and AD 6 * @fileoverview Polymer element for displaying AD domain joining and AD
7 * Authenticate user screens. 7 * Authenticate user screens.
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
(...skipping 28 matching lines...) Expand all
39 userRealm: String, 39 userRealm: String,
40 /** 40 /**
41 * Welcome message on top of the UI. 41 * Welcome message on top of the UI.
42 */ 42 */
43 adWelcomeMessage: String 43 adWelcomeMessage: String
44 }, 44 },
45 45
46 /** @private */ 46 /** @private */
47 realmChanged_: function() { 47 realmChanged_: function() {
48 this.adWelcomeMessage = 48 this.adWelcomeMessage =
49 loadTimeData.getStringF('AdAuthWelcomeMessage', this.realm); 49 loadTimeData.getStringF('adAuthWelcomeMessage', this.realm);
50 }, 50 },
51 51
52 /** @private */ 52 /** @private */
53 disabledChanged_: function() { 53 disabledChanged_: function() {
54 this.$.gaiaCard.classList.toggle('disabled', this.disabled); 54 this.$.gaiaCard.classList.toggle('disabled', this.disabled);
55 }, 55 },
56 56
57 focus: function() { 57 focus: function() {
58 if (this.showMachineInput && /** @type {string} */ ( 58 if (this.showMachineInput && /** @type {string} */ (
59 this.$.machineNameInput.value) == '') { 59 this.$.machineNameInput.value) == '') {
(...skipping 28 matching lines...) Expand all
88 user += this.userRealm; 88 user += this.userRealm;
89 var msg = { 89 var msg = {
90 'machinename': this.$.machineNameInput.value, 90 'machinename': this.$.machineNameInput.value,
91 'username': user, 91 'username': user,
92 'password': this.$.passwordInput.value 92 'password': this.$.passwordInput.value
93 }; 93 };
94 this.$.passwordInput.value = ''; 94 this.$.passwordInput.value = '';
95 this.fire('authCompleted', msg); 95 this.fire('authCompleted', msg);
96 }, 96 },
97 }); 97 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698