Sha256: a3142cfa739a33588ffb1b50f9a5b45498b24dec2abe80a7e986deeba7e8356d

Contents?: true

Size: 320 Bytes

Versions: 6

Compression:

Stored size: 320 Bytes

Contents

# encoding: utf-8
module Fastui
  class UserAuthenticator
    def initialize(user)
      @user = user
    end

    def authenticate(unencrypted_password)
      return false unless @user
      if @user.password == unencrypted_password
        @user
      else
        false
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fastui-0.1.8 app/models/fastui/user_authenticator.rb
fastui-0.1.7 app/models/fastui/user_authenticator.rb
fastui-0.1.6 app/models/fastui/user_authenticator.rb
fastui-0.1.4 app/models/fastui/user_authenticator.rb
fastui-0.1.3 app/models/fastui/user_authenticator.rb
fastui-0.1.2 app/models/fastui/user_authenticator.rb