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

Followed guidelines but can't use it. #164

Open
krtschmr opened this issue Jan 23, 2019 · 0 comments
Open

Followed guidelines but can't use it. #164

krtschmr opened this issue Jan 23, 2019 · 0 comments

Comments

@krtschmr
Copy link

I followed step by step of the instructions. setup model, migrations and initializer. i've also setup an encryption key

[23] pry(main)> ENV['OTP_SECRET_ENCRYPTION_KEY']
=> "a3ebaae85c248da81427623959753e46b9fcb8a0d630a1e41c1dffe03596bf2ffd9701bf69fa0dd598f3c45103bdba7e956d0d3560916859884de92d1f51fe16"

however, now things are unclear how to continue.

i followed the exampleapp which says: User.create! email: email, password: '12345678', password_confirmation: '12345678', otp_secret_key: default_otp_secret

[36] pry(main)> User.create! email: "[email protected]", password: '12345678', otp_secret_key: "aabcdefabcdefabc"
ArgumentError: must specify a key
from /home/tim/.rvm/gems/ruby-2.6.0/gems/encryptor-3.0.0/lib/encryptor.rb:56:in `crypt'

i tried manually with an existing user u.otp_secret_key="aabcdefabcdefabc" and get the same error.

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

1 participant