Sha256: de78b13c32598467127f274184bf872537837d3164de700437361c9a4a67790b
Contents?: true
Size: 498 Bytes
Versions: 6
Compression:
Stored size: 498 Bytes
Contents
module Nyauth class ConfirmationsController < Nyauth::BaseController allow_everyone self.responder = ConfirmationResponder before_action :set_client def update @client.confirm respond_with(@client, location: Nyauth.configuration.redirect_path_after_update_confirmation.call(nyauth_client_name) || main_app.root_path) end private def set_client @client = nyauth_client_class.find_by!(confirmation_key: params[:confirmation_key]) end end end
Version data entries
6 entries across 6 versions & 1 rubygems