Merge pull request #4666 from felixrieseberg/iss4651

Trigger Change Event before Login
This commit is contained in:
Jason Williams 2014-12-26 11:13:18 -06:00
commit 07bf54224a

View File

@ -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');