mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02:00
[feature/oauth] Store anonymous user by session id
PHPBB3-9734
This commit is contained in:
parent
b22b076a99
commit
69e1588655
@ -926,10 +926,14 @@ function get_schema_struct()
|
||||
$schemda_data['auth_provider_oauth'] = array(
|
||||
'COLUMNS' => array(
|
||||
'user_id' => array('UINT', 0), // phpbb_users.user_id
|
||||
'session_id' => array('CHAR:32', ''), // phpbb_sessions.session_id used only when user_id not set
|
||||
'oauth_provider' => array('VCHAR'), // Name of the OAuth provider
|
||||
'oauth_token' => array('TEXT_UNI'), // Serialized token
|
||||
),
|
||||
'PRIMARY_KEY' => array('user_id', 'oauth_provider'),
|
||||
'KEYS' => array(
|
||||
'user_id' => array('INDEX', 'user_id'),
|
||||
'oauth_provider' => array('INDEX', 'oauth_provider'),
|
||||
),
|
||||
);
|
||||
|
||||
$schema_data['phpbb_banlist'] = array(
|
||||
|
@ -21,13 +21,16 @@ class phpbb_db_migration_data_310_auth_provider_oauth extends phpbb_db_migration
|
||||
$this->table_prefix . 'auth_provider_oauth' => array(
|
||||
'COLUMNS' => array(
|
||||
'user_id' => array('UINT', 0), // phpbb_users.user_id
|
||||
'session_id' => array('CHAR:32', ''), // phpbb_sessions.session_id used only when user_id not set
|
||||
'oauth_provider' => array('VCHAR'), // Name of the OAuth provider
|
||||
'oauth_token' => array('TEXT_UNI'), // Serialized token
|
||||
),
|
||||
'PRIMARY_KEY' => array('user_id', 'oauth_provider'),
|
||||
'KEYS' => array(
|
||||
'user_id' => array('INDEX', 'user_id'),
|
||||
'oauth_provider' => array('INDEX', 'oauth_provider'),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user