jeremyevans / rodauth

Ruby's Most Advanced Authentication Framework
http://rodauth.jeremyevans.net
MIT License
1.67k stars 95 forks source link

Internal request `verify_account` with `account_login` does not work #257

Closed mainameiz closed 2 years ago

mainameiz commented 2 years ago

Hi, Jeremy!

Seems like this part of rodauth does not work изображение

when I try to create and verify account with such code:

rodauth.create_account(login: 'admin6@example.com', password: 'admin6')
rodauth.verify_account(account_login: 'admin2@example.com', password: 'admin6')

... this part of code https://github.com/jeremyevans/rodauth/blob/90ad8052661c55f8cc394bb36b38b48ddf65899f/lib/rodauth/features/verify_account.rb#L98-L99

just checks that user already logged in and then does not perform any verification code 😞.

jeremyevans commented 2 years ago

Any chance you could submit a failing spec for this? We have specs where :account_login and :password are both provided, and verification works (https://github.com/jeremyevans/rodauth/blob/master/spec/verify_account_spec.rb#L411), so I'm not sure what is going wrong in your case.

mainameiz commented 2 years ago

This was an issue in our application code. Sorry 😞