From 252c4098c4910ec2fc20feb9f1c1f92ada129b04 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 18 Jun 2008 01:26:38 -0400 Subject: 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 --- classes/User_openid.php | 3 ++- classes/stoica.ini | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'classes') 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 -- cgit v1.2.3-54-g00ecf