Fix Devise destroy method being available to delete user record (#3266)
(You may think that we need account deletions, but this way would've just orphaned the db records)
This commit is contained in:
parent
19ecde8fe7
commit
2ca1f0737a
2 changed files with 22 additions and 0 deletions
|
@ -6,6 +6,10 @@ class Auth::RegistrationsController < Devise::RegistrationsController
|
|||
before_action :check_enabled_registrations, only: [:new, :create]
|
||||
before_action :configure_sign_up_params, only: [:create]
|
||||
|
||||
def destroy
|
||||
not_found
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def build_resource(hash = nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue