lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-0.0.6 vs lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-0.0.7

- old
+ new

@@ -1,7 +1,11 @@ class PasswordResetsController < ApplicationController - before_action :set_<%= singular_table_name %>, only: :update + before_action :set_<%= singular_table_name %>, only: %i[ edit update ] skip_before_action :authenticate + + def edit + render json: { message: "Open this link in your device" }, status: :not_found + end def create if @<%= singular_table_name %> = <%= class_name %>.find_by_email(params[:email]) PasswordMailer.with(<%= singular_table_name %>: @<%= singular_table_name %>).reset.deliver_later else