Remove unused code and routes that don't exist in session_controller

This commit is contained in:
Neil Lalonde 2013-03-13 15:21:45 -04:00
parent 45674ef8e7
commit 213d3e5c10
2 changed files with 1 additions and 6 deletions

View file

@ -36,11 +36,6 @@ class SessionController < ApplicationController
render :json => {error: I18n.t("login.incorrect_username_email_or_password")}
end
# Retrieve information about the site and session
def index
render_serialized(DiscourseSession.new, DiscourseSessionSerializer)
end
def forgot_password
requires_parameter(:username)

View file

@ -62,7 +62,7 @@ Discourse::Application.routes.draw do
post 'email/resubscribe/:key' => 'email#resubscribe', as: 'email_resubscribe'
resources :session, id: USERNAME_ROUTE_FORMAT do
resources :session, id: USERNAME_ROUTE_FORMAT, :only => [:create, :destroy] do
collection do
post 'forgot_password'
end