Remove support for logging in with the deprecated user_name /
password_hash cookies. Followup to 320ff01e0.
16 lines
359 B
Ruby
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
|