Merge pull request #2891 from techAPJ/patch-1
FIX: browser password manager was saving name instead of username
This commit is contained in:
commit
6d880f625f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue