mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Merge pull request #4666 from felixrieseberg/iss4651
Trigger Change Event before Login
This commit is contained in:
commit
07bf54224a
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ var SigninController = Ember.Controller.extend(SimpleAuth.AuthenticationControll
|
|||
validateAndAuthenticate: function () {
|
||||
var self = this;
|
||||
|
||||
// Manually trigger events for input fields, ensuring legacy compatibility with
|
||||
// browsers and password managers that don't send proper events on autofill
|
||||
$('#login').find('input').trigger('change');
|
||||
|
||||
this.validate({format: false}).then(function () {
|
||||
self.notifications.closePassive();
|
||||
self.send('authenticate');
|
||||
|
|
Loading…
Add table
Reference in a new issue