lib/rodauth/features/select_account.rb in rodauth-select-account-0.1.0 vs lib/rodauth/features/select_account.rb in rodauth-select-account-0.1.1
- old
+ new
@@ -81,9 +81,14 @@
@valid_login_entered = true
true
end
+ def post_configure
+ super
+ i18n_register(File.expand_path(File.join(__dir__, "..", "..", "..", "locales"))) if features.include?(:i18n)
+ end
+
private
# when selecting an account and requiring login, you'll want the user to go back to where it was
# before selecting accounts
def login_after_select_account_required