lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-2.2.8 vs lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-2.2.9
- old
+ new
@@ -1,8 +1,8 @@
class PasswordResetsController < ApplicationController
- before_action :set_<%= singular_table_name %>, only: :update
-
skip_before_action :authenticate
+
+ before_action :set_<%= singular_table_name %>, only: :update
def create
if @<%= singular_table_name %> = <%= class_name %>.find_by(email: params[:email], verified: true)
IdentityMailer.with(<%= singular_table_name %>: @<%= singular_table_name %>).password_reset_provision.deliver_later
else