McRipper / trestle-auth-otp

One Time Password plugin for the Trestle admin framework
GNU Lesser General Public License v3.0
2 stars 2 forks source link

params[:otp_code_token] not being passed to config.auth.authenticate #1

Closed Alxzu closed 4 years ago

Alxzu commented 4 years ago

Hi, I'm trying to implement this on a new project but I'm always getting the same error "invalid credentials". When I debug the initializer I noticed that params[:otp_code_token] is nil.

Screen Shot 2020-06-27 at 13 51 40 Screen Shot 2020-06-27 at 13 53 14

Do I need to set up anything else?

Great gem btw, thanks

Rails: 6.03 Ruby: 2.6.3

Screen Shot 2020-06-27 at 13 55 16

McRipper commented 4 years ago

Hi @Alxzu, please update to the latest version of this library '0.2.1' and use the head branch of 'trestle-auth' until a new version is published by the author.

gem 'trestle-auth', '~> 0.4.0', github: 'TrestleAdmin/trestle-auth'