Merge pull request #2891 from techAPJ/patch-1

FIX: browser password manager was saving name instead of username
This commit is contained in:
Sam 2014-10-20 11:03:44 +11:00
commit 6d880f625f
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();