FIX: browser password manager was saving name instead of username

This commit is contained in:
Arpit Jalan 2014-10-20 01:16:07 +05:30
parent 12be79c3f9
commit e6171c31fb
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ export default DiscourseController.extend(ModalFunctionality, {
if (result.success) {
// Trigger the browser's password manager using the hidden static login form:
var $hidden_login_form = $('#hidden-login-form');
$hidden_login_form.find('input[name=username]').val(attrs.accountName);
$hidden_login_form.find('input[name=username]').val(attrs.accountUsername);
$hidden_login_form.find('input[name=password]').val(attrs.accountPassword);
$hidden_login_form.find('input[name=redirect]').val(Discourse.getURL('/users/account-created'));
$hidden_login_form.submit();