From 0ce38e32021000f7611f38e7ffc2a65702813d0e Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Sun, 26 Oct 2025 23:20:44 +1100 Subject: [PATCH] Bug fix --- app/controllers/invitations_controller.rb | 2 +- app/views/invitations/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb index 7bf01c8..4e476a8 100644 --- a/app/controllers/invitations_controller.rb +++ b/app/controllers/invitations_controller.rb @@ -14,7 +14,7 @@ class InvitationsController < ApplicationController start_new_session_for @user redirect_to root_path, notice: "Your account has been set up successfully. Welcome!" else - redirect_to invite_path(params[:token]), alert: "Passwords did not match." + redirect_to invitation_path(params[:token]), alert: "Passwords did not match." end end diff --git a/app/views/invitations/show.html.erb b/app/views/invitations/show.html.erb index 70edaf4..63af659 100644 --- a/app/views/invitations/show.html.erb +++ b/app/views/invitations/show.html.erb @@ -6,7 +6,7 @@

Welcome to Clinch!

You've been invited to join Clinch. Please create your password to complete your account setup.

- <%= form_with url: invite_path(params[:token]), method: :put, class: "contents" do |form| %> + <%= form_with url: invitation_path(params[:token]), method: :put, class: "contents" do |form| %>
<%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter your password", maxlength: 72, class: "block shadow-sm rounded-md border border-gray-400 focus:outline-solid focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>