Remove basic auth restriction on signup

This commit is contained in:
Stanko K.R.
2025-12-02 09:12:47 +01:00
parent 9ae9e67d24
commit b97877dc30
-8
View File
@@ -1,12 +1,4 @@
class SignupsController < ApplicationController
# FIXME: Remove this before launch!
unless Rails.env.local?
http_basic_authenticate_with \
name: Rails.application.credentials.account_signup_http_basic_auth.name,
password: Rails.application.credentials.account_signup_http_basic_auth.password,
realm: "Fizzy Signup"
end
disallow_account_scope
allow_unauthenticated_access
rate_limit to: 10, within: 3.minutes, only: :create, with: -> { redirect_to new_signup_path, alert: "Try again later." }