Error with sending account verification email with named auth class #232
-
Hi there,
This started happening after I versioned the auth class, :v1. Here are some details. Before the versioning, Please let me know if you need any more info. Edit: I did a bit more testing and found that it isn't because the auth class is versioned. It just fails if I name the auth class at all. Even |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Yes, it seems your mailer configuration relies on a default Rodauth configuration existing (without a name), which doesn't exist in your setup. Could you post the part of your Rodauth configuration that calls the mailer, as well as the mailer code? |
Beta Was this translation helpful? Give feedback.
I only now took a look at the backtrace 🤦🏻♂️ You'll notice it's not related to emails at all, but to the
Rodauth::Rails.model
call in your account model file, you need to change it toRodauth::Rails.model(:v1)
(or toRodauth::Model(V1::RodauthMain)
, which new rodauth-rails versions will generate).