Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin activation: email_to & verify_account_email_body not overriding #251

Closed
benoror opened this issue Aug 3, 2022 · 2 comments
Closed

Comments

@benoror
Copy link

benoror commented Aug 3, 2022

Following the admin_activation.rdoc guide I noticed that this two snippets of code won't work with latest release(2.25.0)

This one fails to override the email_to:

  # Send account verification email to the admin
  email_to do
    if account[account_status_column] == account_unverified_status_value
      "[email protected]"
    else
      super()
    end
  end

This fails to override email's body

  verify_account_email_body do
    "The user #{account[login_column]} has created an account. Click here to approve it: #{verify_account_email_link}."
  end

Thanks!

@janko
Copy link
Contributor

janko commented Aug 3, 2022

Are you using rodauth-rails? There a custom mailer is generated on installation, which doesn't use these methods.

@benoror
Copy link
Author

benoror commented Aug 4, 2022

@janko that was it 🤦 thanks a bunch dude!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants