summaryrefslogtreecommitdiff
path: root/classes/User_openid.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-18 01:26:38 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-18 01:26:38 -0400
commit252c4098c4910ec2fc20feb9f1c1f92ada129b04 (patch)
tree1fc6e898e763b3e9caaf05a03077c7a5a9ad6826 /classes/User_openid.php
parent111bab65b4a01fdd4fd9d1302a79692941021d50 (diff)
finish openid
Added some code to make finishing the OpenID login work. Changed the OID storage so that there's a "canonical" URL and a display URL. This is because of i-names, which is annoying. If the login succeeds, we try to find a local user associated with the canonical URL. If they don't exist, we let the user either create a new account, or login to an existing account and connect to it. A totally unrelated change is that the DB engine now uses InnoDB. darcs-hash:20080618052638-84dde-909e51dbd5b9eadadf18cd010868baa18ea2349a.gz
Diffstat (limited to 'classes/User_openid.php')
-rw-r--r--classes/User_openid.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/User_openid.php b/classes/User_openid.php
index 9811879ec..4c654af1c 100644
--- a/classes/User_openid.php
+++ b/classes/User_openid.php
@@ -10,7 +10,8 @@ class User_openid extends DB_DataObject
/* the code below is auto generated do not remove the above tag */
public $__table = 'user_openid'; // table name
- public $url; // varchar(255) primary_key not_null
+ public $canonical; // varchar(255) primary_key not_null
+ public $display; // varchar(255) unique_key not_null
public $user_id; // int(4) unique_key not_null
public $created; // datetime() not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP