mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Remove unused code and routes that don't exist in session_controller
This commit is contained in:
parent
45674ef8e7
commit
213d3e5c10
2 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue