Changeset 120
- Timestamp:
- 07/19/07 14:15:45 (1 year ago)
- Files:
-
- branch/config/core.php (modified) (1 diff)
- branch/controllers/users_controller.php (modified) (1 diff)
- branch/vendors/Auth/OpenID/Consumer.php (modified) (1 diff)
- branch/webroot/css/jquery.tabs.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branch/config/core.php
r119 r120 55 55 * In development mode, you need to click the flash message to continue. 56 56 */ 57 define('DEBUG', 0);57 define('DEBUG', 2); 58 58 /** 59 59 * Turn off or enable cache checking application-wide. branch/controllers/users_controller.php
r119 r120 127 127 if( isset ( $this->data ) ) 128 128 { 129 $this->Session->del('element_data.Nav'); 130 if ($this->Conf->get('general.enable_captcha')) 129 if (isset ($this->data['User']['username']) ) 131 130 { 132 if (!$this->Session->read('captcha') == $this->data['User']['captcha_check'] ) 131 $this->Session->del('element_data.Nav'); 132 if ($this->Conf->get('general.enable_captcha')) 133 133 { 134 return false; 134 if (!$this->Session->read('captcha') == $this->data['User']['captcha_check'] ) 135 { 136 return false; 137 } 135 138 } 139 $auth_num = $this->othAuth->login($this->data['User']); 140 $this->set('auth_msg', $this->othAuth->getMsg($auth_num)); 141 } else if ($this->data['User']['openid']) { 142 $this->Session->del('element_data.Nav'); 143 $this->Openid->authenticate($this->data['User']['openid'], 'http://'.$_SERVER['SERVER_NAME'].'/users/login', 'http://'.$_SERVER['SERVER_NAME']); 136 144 } 137 $auth_num = $this->othAuth->login($this->data['User']); 138 $this->set('auth_msg', $this->othAuth->getMsg($auth_num)); 145 } else { 146 if (count($_GET) > 1) 147 { 148 $response = $this->Openid->getResponse(); 149 150 if ($response->status == Auth_OpenID_SUCCESS) { 151 $this->log($response); 152 if ($this->User->findByOpenid($response->signed_args['openid.identity']) ) { 153 $this->Session->setFlash('User Authenticated Success'); 154 //$this->Session->write('username', $response->signed_args['openid.sreg.nickname']); 155 $this->redirect('/'); 156 } else { 157 $this->Session->setFlash("Can't Find"); 158 $this->redirect('/'); 159 } 160 } 161 } 139 162 } 140 163 } branch/vendors/Auth/OpenID/Consumer.php
r119 r120 212 212 define('Auth_OpenID_DEFAULT_NONCE_CHRS',"abcdefghijklmnopqrstuvwxyz" . 213 213 "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); 214 214 215 /** 216 * Dumb math - Added by Tane 217 */ 218 define('Auth_OpenID_NO_MATH_SUPPORT', true); 215 219 /** 216 220 * An OpenID consumer implementation that performs discovery and does branch/webroot/css/jquery.tabs.css
r119 r120 90 90 border-top: 1px solid #97a5b0; 91 91 padding: 1em 8px; 92 background: # 45484B; /* declare background color for container to avoid distorted fonts in IE while fading */92 background: #36393B; /* declare background color for container to avoid distorted fonts in IE while fading */ 93 93 } 94 94 .tabs-loading em {