Files
danbooru/app/controllers/maintenance/user/deletions_controller.rb
evazion 9e455695a1 sessions: remove legacy user_name / password_hash cookies.
Remove support for logging in with the deprecated user_name /
password_hash cookies. Followup to 320ff01e0.
2020-03-25 18:48:43 -05:00

16 lines
359 B
Ruby

module Maintenance
module User
class DeletionsController < ApplicationController
def show
end
def destroy
deletion = UserDeletion.new(CurrentUser.user, params[:password])
deletion.delete!
session.delete(:user_id)
redirect_to(posts_path, :notice => "You are now logged out")
end
end
end
end