can't we simply fix the AuthSource.authenticate method?

e.g. in https://github.com/stbenjam/foreman/blob/ffdb80060f68eb3eb0057f589e8f0f2a3bcef390/app/models/auth_source.rb#L54
simply do
```ruby
where(:onthefly_register => true).each do...
```