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