mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
Merge pull request #4666 from felixrieseberg/iss4651
Trigger Change Event before Login
This commit is contained in:
commit
07bf54224a
@ -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…
Reference in New Issue
Block a user