diff --git a/src/marten/cli/templates/auth/templates/app/handlers/password_update_handler.cr.ecr b/src/marten/cli/templates/auth/templates/app/handlers/password_update_handler.cr.ecr index 339eea44c..10b3b7785 100644 --- a/src/marten/cli/templates/auth/templates/app/handlers/password_update_handler.cr.ecr +++ b/src/marten/cli/templates/auth/templates/app/handlers/password_update_handler.cr.ecr @@ -9,13 +9,13 @@ module <%= context.module_name %> success_route_name "<%= context.label %>:profile" before_schema_validation :prepare_schema - after_successful_schema_validation :process_password_reset_request + after_successful_schema_validation :process_password_update private def prepare_schema schema.user = request.user! end - private def process_password_reset_request + private def process_password_update flash[:notice] = "You've successfully updated your password!" request.user!.set_password(self.schema.new_password!)