Class: People::WelcomeController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- People::WelcomeController
- Includes:
- AuthCheck
- Defined in:
- app/controllers/people/welcome_controller.rb
Overview
COPYRIGHT:
Copyright (c) 2005-2009 North Carolina State University
Developed with funding for the National eXtension Initiative.
LICENSE:
BSD(-compatible)
see LICENSE file or view at http://about.extension.org/wiki/LICENSE
Constant Summary
Constant Summary
Constants included from AuthCheck
AuthCheck::AUTH_ACCOUNT_NOTVOUCHED, AuthCheck::AUTH_ACCOUNT_RETIRED, AuthCheck::AUTH_ACCOUNT_REVIEW, AuthCheck::AUTH_EMAIL_NOTCONFIRM, AuthCheck::AUTH_INVALID_APIKEY, AuthCheck::AUTH_INVALID_EMAIL, AuthCheck::AUTH_INVALID_ID, AuthCheck::AUTH_INVALID_PASSWORD, AuthCheck::AUTH_PASSWORD_EXPIRED, AuthCheck::AUTH_SIGNUP_CONFIRM, AuthCheck::AUTH_SUCCESS, AuthCheck::AUTH_UNKNOWN
Instance Method Summary (collapse)
Methods included from AuthCheck
#authlogmsg, #authuser, #checkidstring_for_openid, #explainauthresult, #statuscheck
Instance Method Details
- (Object) home
16 17 18 19 20 |
# File 'app/controllers/people/welcome_controller.rb', line 16 def home @openidmeta = (@openiduser) # if we get here for some reason, clear last_opierequest session[:last_opierequest] = nil end |
- (Object) notice
22 23 24 25 26 27 28 29 |
# File 'app/controllers/people/welcome_controller.rb', line 22 def notice result = statuscheck(@currentuser) if(AUTH_SUCCESS == result[:code]) redirect_to(people_welcome_url) else @notice = explainauthresult(result[:code]) end end |