| 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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1318 } else if (this.isAuthTypeUserClick) { | 1318 } else if (this.isAuthTypeUserClick) { |
| 1319 Oobe.disableSigninUI(); | 1319 Oobe.disableSigninUI(); |
| 1320 this.classList.toggle('signing-in', true); | 1320 this.classList.toggle('signing-in', true); |
| 1321 chrome.send('attemptUnlock', [this.user.username]); | 1321 chrome.send('attemptUnlock', [this.user.username]); |
| 1322 } else if (this.isAuthTypePassword) { | 1322 } else if (this.isAuthTypePassword) { |
| 1323 var pinValue = this.pinKeyboard ? this.pinKeyboard.value : ''; | 1323 var pinValue = this.pinKeyboard ? this.pinKeyboard.value : ''; |
| 1324 var password = this.passwordElement.value || pinValue; | 1324 var password = this.passwordElement.value || pinValue; |
| 1325 if (!password) | 1325 if (!password) |
| 1326 return false; | 1326 return false; |
| 1327 Oobe.disableSigninUI(); | 1327 Oobe.disableSigninUI(); |
| 1328 chrome.send('authenticateUser', [this.user.username, password]); | 1328 chrome.send('authenticateUser', [this.user.username, password, |
| 1329 this.isPinShown()]); |
| 1329 } else { | 1330 } else { |
| 1330 console.error('Activating user pod with invalid authentication type: ' + | 1331 console.error('Activating user pod with invalid authentication type: ' + |
| 1331 this.authType); | 1332 this.authType); |
| 1332 } | 1333 } |
| 1333 | 1334 |
| 1334 return true; | 1335 return true; |
| 1335 }, | 1336 }, |
| 1336 | 1337 |
| 1337 showSupervisedUserSigninWarning: function() { | 1338 showSupervisedUserSigninWarning: function() { |
| 1338 // Legacy supervised user token has been invalidated. | 1339 // Legacy supervised user token has been invalidated. |
| (...skipping 2184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3523 if (pod && pod.multiProfilesPolicyApplied) { | 3524 if (pod && pod.multiProfilesPolicyApplied) { |
| 3524 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3525 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
| 3525 } | 3526 } |
| 3526 } | 3527 } |
| 3527 }; | 3528 }; |
| 3528 | 3529 |
| 3529 return { | 3530 return { |
| 3530 PodRow: PodRow | 3531 PodRow: PodRow |
| 3531 }; | 3532 }; |
| 3532 }); | 3533 }); |
| OLD | NEW |