Sha256: c489bd115e3a42cef66f4cb0993b2879965313e29b81d292840b0f9b3ca0429a

Contents?: true

Size: 596 Bytes

Versions: 22

Compression:

Stored size: 596 Bytes

Contents

class Application < Rhoconnect::Base
  class << self
    def authenticate(username,password,session)
      session[:auth] = "delegated"
      raise RuntimeError.new('server error') if password == 'server error'
      raise LoginException.new('login exception') if password == 'wrongpass'
      return "different" if password == "diffuser"
      password == 'wrongpassnomsg' ? false : true
    end
    
    # Add hooks for application startup here
    # Don't forget to call super at the end!
    def initializer(path)
      super
    end
  end
end

Application.initializer(File.dirname(__FILE__))

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rhoconnect-3.0.0.beta3 spec/apps/rhotestapp/application.rb
rhoconnect-3.0.0.beta1 spec/apps/rhotestapp/application.rb