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 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 this.showSigninUI(); | 1319 this.showSigninUI(); |
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 password = this.passwordElement.value || this.pinKeyboard.value; | 1325 var password = this.passwordElement.value || this.pinKeyboard.value; |
1326 if (!password) | 1326 if (!password) |
1327 return false; | 1327 return false; |
1328 Oobe.disableSigninUI(); | 1328 Oobe.disableSigninUI(); |
1329 chrome.send('authenticateUser', [this.user.username, password]); | 1329 chrome.send('authenticateUser', [this.user.username, password, |
| 1330 this.isPinShown()]); |
1330 } else { | 1331 } else { |
1331 console.error('Activating user pod with invalid authentication type: ' + | 1332 console.error('Activating user pod with invalid authentication type: ' + |
1332 this.authType); | 1333 this.authType); |
1333 } | 1334 } |
1334 | 1335 |
1335 return true; | 1336 return true; |
1336 }, | 1337 }, |
1337 | 1338 |
1338 showSupervisedUserSigninWarning: function() { | 1339 showSupervisedUserSigninWarning: function() { |
1339 // Legacy supervised user token has been invalidated. | 1340 // Legacy supervised user token has been invalidated. |
(...skipping 2178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3518 if (pod && pod.multiProfilesPolicyApplied) { | 3519 if (pod && pod.multiProfilesPolicyApplied) { |
3519 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3520 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
3520 } | 3521 } |
3521 } | 3522 } |
3522 }; | 3523 }; |
3523 | 3524 |
3524 return { | 3525 return { |
3525 PodRow: PodRow | 3526 PodRow: PodRow |
3526 }; | 3527 }; |
3527 }); | 3528 }); |
OLD | NEW |