Skip to content

sending unlock account email if account is locked #261

Answered by janko
rida-elbahtouri asked this question in Q&A
Discussion options

You must be logged in to vote

I wasn't able to reproduce. Here is a self-contained example that uses Rodauth directly, but imitates the mailer configuration. The output shows that the token in the email link generated by the email is identical to the one Rodauth generates naturally.

Example
require "roda"
require "sequel"
require "mail"
require "capybara"
require "logger"

Mail.defaults { delivery_method :test }

DB = Sequel.sqlite
DB.create_table :accounts do
  primary_key :id
  String :status_id, null: false, default: 1
  String :email, null: false
  String :password_hash
end
DB.create_table :account_login_failures do
  foreign_key :id, :accounts, primary_key: true
  Integer :number, null: false, default: 1
end
DB.c…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@janko
Comment options

Answer selected by rida-elbahtouri
@rida-elbahtouri
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants