tinyforms/app/controllers/sessions_controller.rb
Michael Bumann c478cfc7af Use sorcery for logins
This gives us more flexibility and allows us to use password authentication
later. Also we don't need to build the login functionality ourself.
2020-04-13 14:59:07 +02:00

13 lines
153 B
Ruby

class SessionsController < ApplicationController
def new
reset_session
end
def destroy
reset_session
redirect_to root_url
end
end