class LoginTokensController < ApplicationController

  def show
    session[:pending_login_token] = login_token.token
    redirect_to login_token.redirect || dashboard_path
  end

  private

  def login_token
    @login_token ||= LoginToken.find_by!(token: params[:token])
  end
end
