riverrun / one_time_pass_ecto

No longer maintained - One-time password library with Ecto support (for Elixir)
55 stars 9 forks source link

Configurable secret names #6

Closed bradediger closed 5 years ago

bradediger commented 5 years ago

Allows the Ecto field names otp_secret and otp_last to be configured by passing :otp_secret and :otp_last options into verify/4.

This allows the field names to differ from the defaults -- and also allows more than one OTP context per user in cases where users might be authenticated into different contexts.

riverrun commented 5 years ago

All looks good. Thanks for your help.

bradediger commented 5 years ago

Thank you -- glad we could contribute!

riverrun commented 5 years ago

Updated hex package to 1.0.3