class Skala::AlephAdapter::AuthenticateUser
Public Class Methods
new(adapter)
click to toggle source
# File lib/skala/aleph_adapter/authenticate_user.rb, line 5 def initialize(adapter) @adapter = adapter end
Public Instance Methods
call(user_id, password)
click to toggle source
# File lib/skala/aleph_adapter/authenticate_user.rb, line 9 def call(user_id, password) @adapter.x_services.post( op: :"bor-auth", bor_id: user_id, library: @adapter.default_user_library, verification: password ) .try do |_response| if _response.include?("<z303>") true elsif _response.include?("error") false else StandardError.new end end end