Sha256: b1d0d1925d6aae3815aba004b94013f3e64470653e1404e67dd8b2d474a40ef7

Contents?: true

Size: 458 Bytes

Versions: 9

Compression:

Stored size: 458 Bytes

Contents

#          Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

require 'ramaze'

class MainController < Ramaze::Controller
  helper :identity

  def index
    if session[:openid_identity]
      %{
        <h1>#{flash[:success]}</h1>
        <p>You are logged in as #{session[:openid_identity]}</p>
      }
    else
      openid_login_form
    end
  end
end

Ramaze.start

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ramaze-0.0.9 examples/identity.rb
ramaze-0.1.0 examples/identity.rb
ramaze-0.1.2 examples/identity.rb
ramaze-0.1.3 examples/identity.rb
ramaze-0.1.4 examples/identity.rb
ramaze-0.1.1 examples/identity.rb
ramaze-0.2.0 examples/identity.rb
ramaze-0.3.0 examples/identity.rb
ramaze-0.2.1 examples/identity.rb