lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-0.0.11 vs lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-0.0.12
- old
+ new
@@ -29,8 +29,8 @@
rescue ActiveSupport::MessageVerifier::InvalidSignature
render json: { error: "Your token has expired, please request a new one" }, status: :bad_request
end
def password_params
- params.require(:<%= singular_table_name %>).permit(:password, :password_confirmation)
+ params.permit(:password, :password_confirmation)
end
end