mastodon/app/controllers/auth/acceptances_controller.rb

14 lines
275 B
Ruby

# frozen_string_literal: true
class Auth::AcceptancesController < ApplicationController
def create
redirect_to new_user_registration_path(registration_params)
end
private
def registration_params
params.permit(:accept, :invite_code).compact_blank
end
end