diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-18 01:26:38 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-18 01:26:38 -0400 |
commit | 252c4098c4910ec2fc20feb9f1c1f92ada129b04 (patch) | |
tree | 1fc6e898e763b3e9caaf05a03077c7a5a9ad6826 /classes | |
parent | 111bab65b4a01fdd4fd9d1302a79692941021d50 (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')
-rw-r--r-- | classes/User_openid.php | 3 | ||||
-rw-r--r-- | classes/stoica.ini | 6 |
2 files changed, 6 insertions, 3 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 diff --git a/classes/stoica.ini b/classes/stoica.ini index 0f7675e06..26fa400f3 100644 --- a/classes/stoica.ini +++ b/classes/stoica.ini @@ -117,11 +117,13 @@ email = U uri = U [user_openid] -url = 130 +canonical = 130 +display = 130 user_id = 129 created = 142 modified = 384 [user_openid__keys] -url = K +canonical = K +display = U user_id = U |