Currently, there is no possibility of remember device when login process is through OneTouch. This fix takes the same checkbox used in submit-token form and retrieves checked state on every onetouchInterval execution, so every onetouchRequest sends the variable as a query string to the server (like onetouch_uuid). Then, GET_authy_onetouch_status method in devise_authy_controller.rb validates remember_device param and replicates remember_device helper in 'approved' case.
Fixes #127
Contributing to Twilio
All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.
[x] I acknowledge that all my contributions will be made under the project's license.
Currently, there is no possibility of remember device when login process is through OneTouch. This fix takes the same checkbox used in
submit-token
form and retrieveschecked
state on everyonetouchInterval
execution, so everyonetouchRequest
sends the variable as a query string to the server (likeonetouch_uuid
). Then,GET_authy_onetouch_status
method indevise_authy_controller.rb
validatesremember_device
param and replicatesremember_device
helper in 'approved' case.Fixes #127
Contributing to Twilio