lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-0.0.10 vs lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-0.0.11
- old
+ new
@@ -23,10 +23,10 @@
end
end
private
def set_<%= singular_table_name %>
- @<%= singular_table_name %> = <%= class_name %>.find_signed!(params[:token], purpose: "password_reset")
+ @<%= singular_table_name %> = <%= class_name %>.find_signed!(params[:sid], purpose: "password_reset")
rescue ActiveSupport::MessageVerifier::InvalidSignature
render json: { error: "Your token has expired, please request a new one" }, status: :bad_request
end
def password_params