Skip to content

Commit

Permalink
Fix callback name in generated password update handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Oct 6, 2024
1 parent 7e13fd1 commit dbfb25c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!)
Expand Down

0 comments on commit dbfb25c

Please sign in to comment.