config/initializers/trestle.rb in trestle-auth-otp-0.2.0 vs config/initializers/trestle.rb in trestle-auth-otp-0.2.1
- old
+ new
@@ -1,8 +1,8 @@
Trestle.configure do |config|
- config.hook('auth.login.form') do
- render 'trestle/auth/otp'
+ config.hook('auth.login.form') do |f|
+ render partial: 'trestle/auth/otp', locals: { f: f }
end
config.auth.authenticate = ->(params) {
scope = Trestle.config.auth.user_scope