Remove even more unused code

ex-snapshot
Marcin Kulik 7 years ago
parent ddc4b2a211
commit 0b2112f95c

@ -2,15 +2,6 @@ class ApiTokensController < ApplicationController
before_filter :ensure_authenticated!
def create
current_user.assign_api_token(params[:api_token])
redirect_to profile_path(current_user),
notice: "Successfully registered your recorder token."
rescue ActiveRecord::RecordInvalid, ApiToken::ApiTokenTakenError
render :error
end
def destroy
api_token = ApiToken.find(params[:id])
authorize api_token

@ -17,10 +17,6 @@ class ApplicationController < ActionController::Base
redirect_to new_login_path, notice: "Please log in to proceed"
end
def unauthenticated_api
render json: "Unauthenticated", status: 401
end
private
def warden_strategies

@ -1,4 +0,0 @@
.container
h2 Oops.
p Seems like the token is incorrect. Please make sure you've pasted it correctly.

@ -59,12 +59,6 @@ module Asciinema
store: true,
action: "unauthenticated_user"
)
manager.scope_defaults(
:api,
strategies: [:api_token],
store: false,
action: "unauthenticated_api"
)
end
config.action_mailer.default_url_options = {

Loading…
Cancel
Save