diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-11-12 20:12:00 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-11-12 20:12:36 -0500 |
commit | ed690615de8f6433a1a4d9a8fc7c28385af47d8a (patch) | |
tree | 62ad14f1af970f1fe3de55a5c732011128056f10 /plugins/Authentication/User_username.php | |
parent | cefbad0159c6be0aa6e75c85dd2e4b9f1e412116 (diff) |
Added a User_username table that links the external username with a StatusNet user_id
Added EmailAuthenticationPlugin
Added ReverseUsernameAuthenticationPlugin
Changed the StartChangePassword and EndChangePassword events to take a user, instead of a nickname
User::allowed_nickname was declared non-static, but used as if it was static, so I made the declaration static
Diffstat (limited to 'plugins/Authentication/User_username.php')
-rw-r--r-- | plugins/Authentication/User_username.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/Authentication/User_username.php b/plugins/Authentication/User_username.php new file mode 100644 index 000000000..79adeb189 --- /dev/null +++ b/plugins/Authentication/User_username.php @@ -0,0 +1,25 @@ +<?php +/** + * Table Definition for user_username + */ +require_once INSTALLDIR.'/classes/Memcached_DataObject.php'; + +class User_username extends Memcached_DataObject +{ + ###START_AUTOCODE + /* the code below is auto generated do not remove the above tag */ + + public $__table = 'user_username'; // table name + public $user_id; // int(4) not_null + public $provider_name; // varchar(255) primary_key not_null + public $username; // varchar(255) primary_key not_null + public $created; // datetime() not_null + public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP + + /* Static get */ + function staticGet($k,$v=null) + { return Memcached_DataObject::staticGet('User_username',$k,$v); } + + /* the code above is auto generated do not remove the tag below */ + ###END_AUTOCODE +} |