Add: #348 新規登録の上限人数 (#527)

* Add: #348 新規登録の上限人数

* Fix test

* Fix test

* Wip

* Fix test

* Add invite support

* Wip

* Fix test

* Fix test

* Fix test
This commit is contained in:
KMY(雪あすか) 2024-02-12 22:05:32 +09:00 committed by GitHub
parent d7cc6b788c
commit e317edecb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 362 additions and 6 deletions

View file

@ -2,6 +2,7 @@
class Auth::ConfirmationsController < Devise::ConfirmationsController
include Auth::CaptchaConcern
include RegistrationLimitationHelper
layout 'auth'
@ -16,6 +17,11 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
skip_before_action :require_functional!
def show
if reach_registrations_limit?
render :limitation_error
return
end
old_session_values = session.to_hash
reset_session
session.update old_session_values.except('session_id')