forked from External/greenlight
fix logout route to not conflict with BBB
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
class SessionsController < ApplicationController
|
||||
|
||||
# GET /login
|
||||
# GET /users/login
|
||||
def new
|
||||
end
|
||||
|
||||
# GET /logout
|
||||
# GET /users/logout
|
||||
def destroy
|
||||
logout
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
# POST /login
|
||||
# POST /users/login
|
||||
def create
|
||||
user = User.find_by(email: session_params[:email])
|
||||
if user && user.authenticate(session_params[:password])
|
||||
|
Reference in New Issue
Block a user