| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 User pod row implementation. | 6 * @fileoverview User pod row implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 cr.define('login', function() { | 9 cr.define('login', function() { |
| 10 /** | 10 /** |
| (...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1403 } else if (this.isAuthTypeUserClick) { | 1403 } else if (this.isAuthTypeUserClick) { |
| 1404 Oobe.disableSigninUI(); | 1404 Oobe.disableSigninUI(); |
| 1405 this.classList.toggle('signing-in', true); | 1405 this.classList.toggle('signing-in', true); |
| 1406 chrome.send('attemptUnlock', [this.user.username]); | 1406 chrome.send('attemptUnlock', [this.user.username]); |
| 1407 } else if (this.isAuthTypePassword) { | 1407 } else if (this.isAuthTypePassword) { |
| 1408 var pinValue = this.pinKeyboard ? this.pinKeyboard.value : ''; | 1408 var pinValue = this.pinKeyboard ? this.pinKeyboard.value : ''; |
| 1409 var password = this.passwordElement.value || pinValue; | 1409 var password = this.passwordElement.value || pinValue; |
| 1410 if (!password) | 1410 if (!password) |
| 1411 return false; | 1411 return false; |
| 1412 Oobe.disableSigninUI(); | 1412 Oobe.disableSigninUI(); |
| 1413 console.error("chrome.send authenticateUser. username='" + this.user.use
rname + "'"); |
| 1413 chrome.send('authenticateUser', [this.user.username, password, | 1414 chrome.send('authenticateUser', [this.user.username, password, |
| 1414 this.isPinShown()]); | 1415 this.isPinShown()]); |
| 1415 } else { | 1416 } else { |
| 1416 console.error('Activating user pod with invalid authentication type: ' + | 1417 console.error('Activating user pod with invalid authentication type: ' + |
| 1417 this.authType); | 1418 this.authType); |
| 1418 } | 1419 } |
| 1419 | 1420 |
| 1420 return true; | 1421 return true; |
| 1421 }, | 1422 }, |
| 1422 | 1423 |
| (...skipping 2298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3721 if (pod && pod.multiProfilesPolicyApplied) { | 3722 if (pod && pod.multiProfilesPolicyApplied) { |
| 3722 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3723 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
| 3723 } | 3724 } |
| 3724 } | 3725 } |
| 3725 }; | 3726 }; |
| 3726 | 3727 |
| 3727 return { | 3728 return { |
| 3728 PodRow: PodRow | 3729 PodRow: PodRow |
| 3729 }; | 3730 }; |
| 3730 }); | 3731 }); |
| OLD | NEW |