* Add: #348 新規登録の上限人数 * Fix test * Fix test * Wip * Fix test * Add invite support * Wip * Fix test * Fix test * Fix test
This commit is contained in:
parent
d7cc6b788c
commit
e317edecb8
26 changed files with 362 additions and 6 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue