Skip to content

Commit

Permalink
Make email_from & email_to methods public
Browse files Browse the repository at this point in the history
This is useful when generating emails in a background job, as it allows
keeping these configurable from within the Rodauth configuration.
  • Loading branch information
janko committed Nov 22, 2022
1 parent 360dfbc commit 3a8f50c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/rodauth/features/email_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ def post_configure
require 'mail' if require_mail?
end

def email_from
"webmaster@#{domain}"
end

def email_to
account[login_column]
end

private

def send_email(email)
Expand All @@ -42,14 +50,6 @@ def create_email_to(to, subject, body)
m
end

def email_from
"webmaster@#{domain}"
end

def email_to
account[login_column]
end

def token_link(route, param, key)
route_url(route, param => token_param_value(key))
end
Expand Down

0 comments on commit 3a8f50c

Please sign in to comment.