Class: Pasaporte::Controllers::ProfilePage
- Inherits:
-
Object
- Object
- Pasaporte::Controllers::ProfilePage
- Defined in:
- lib/pasaporte.rb
Overview
Just show a public profile page. Before the user logs in for the first time it works like a dummy page. After the user has been succesfully authenticated he can show his personal info on this page (this is his identity URL).
Instance Method Summary collapse
Instance Method Details
#get(nick) ⇒ Object
679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/pasaporte.rb', line 679 def get(nick) @nickname = nick # Redirect the OpenID requesting party to the usual HTTP so that # the OpenID procedure takes place without SSL, if partial SSL is turned on require_plain! if PARTIAL_SSL LOGGER.info "Profile page GET for #{nick}, sending YADIS header" @headers['X-XRDS-Location'] = _our_identity_url + '/yadis' @title = "#{@nickname}'s profile" @profile = Profile.find_by_nickname_and_domain_name(@nickname, my_domain) @no_toolbar = true render(@profile && @profile.shared? ? :profile_public_page : :endpoint_splash) end |
#head(nick) ⇒ Object
674 675 676 677 |
# File 'lib/pasaporte.rb', line 674 def head(nick) get(nick) return end |