+ if((! $record) || (! count($record))) {
+ logger('authenticate: failed login attempt: ' . trim($_POST['openid_url']));
+ notice( t('Login failed.') . EOL );
+ goaway($a->get_baseurl());
+ }
+
+ $_SESSION['uid'] = $record['uid'];
+ $_SESSION['theme'] = $record['theme'];