function openid_authentication_page in Drupal 6
Same name and namespace in other branches
- 7 modules/openid/openid.pages.inc \openid_authentication_page()
Menu callback; Process an OpenID authentication.
1 string reference to 'openid_authentication_page'
- openid_menu in modules/
openid/ openid.module - Implementation of hook_menu.
File
- modules/
openid/ openid.pages.inc, line 11 - User page callbacks for the openid module.
Code
function openid_authentication_page() {
$result = openid_complete();
switch ($result['status']) {
case 'success':
return openid_authentication($result);
case 'failed':
drupal_set_message(t('OpenID login failed.'), 'error');
break;
case 'cancel':
drupal_set_message(t('OpenID login cancelled.'));
break;
}
drupal_goto();
}