app/controllers/nyauth/passwords_controller.rb in nyauth-0.2.4 vs app/controllers/nyauth/passwords_controller.rb in nyauth-0.2.5
- old
+ new
@@ -1,8 +1,11 @@
module Nyauth
class PasswordsController < ApplicationController
include Nyauth::ApplicationConcern
include Nyauth::ClientConcern
+ include Nyauth::SessionConcern
+ before_action -> { require_authentication! as: client_name }
+
respond_to :html, :json
before_action :set_client
def edit
end