|
@@ -18,7 +18,7 @@ class TokensFixture extends TestFixture {
|
|
|
'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 10],
|
|
'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 10],
|
|
|
'user_id' => ['type' => 'integer', 'null' => true, 'length' => 10, 'comment' => ''],
|
|
'user_id' => ['type' => 'integer', 'null' => true, 'length' => 10, 'comment' => ''],
|
|
|
'type' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 20, 'comment' => 'e.g.:activate,reactivate'],
|
|
'type' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 20, 'comment' => 'e.g.:activate,reactivate'],
|
|
|
- 'token' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 60, 'comment' => ''],
|
|
|
|
|
|
|
+ 'token_key' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 60, 'comment' => ''],
|
|
|
'content' => ['type' => 'string', 'null' => true, 'length' => 255, 'default' => null, 'comment' => 'can transport some information'],
|
|
'content' => ['type' => 'string', 'null' => true, 'length' => 255, 'default' => null, 'comment' => 'can transport some information'],
|
|
|
'used' => ['type' => 'integer', 'null' => false, 'default' => '0', 'collate' => null, 'comment' => ''],
|
|
'used' => ['type' => 'integer', 'null' => false, 'default' => '0', 'collate' => null, 'comment' => ''],
|
|
|
'created' => ['type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''],
|
|
'created' => ['type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''],
|
|
@@ -36,7 +36,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => 1,
|
|
'user_id' => 1,
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => '7k8qdcizigtudvxn2v9zep',
|
|
|
|
|
|
|
+ 'token_key' => '7k8qdcizigtudvxn2v9zep',
|
|
|
'content' => 'i:1;',
|
|
'content' => 'i:1;',
|
|
|
'used' => 0,
|
|
'used' => 0,
|
|
|
'created' => '2011-08-02 18:00:41',
|
|
'created' => '2011-08-02 18:00:41',
|
|
@@ -46,7 +46,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => '2',
|
|
'user_id' => '2',
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => '23e32tpkcmdn8x9j8n0n00',
|
|
|
|
|
|
|
+ 'token_key' => '23e32tpkcmdn8x9j8n0n00',
|
|
|
'content' => 'i:2;',
|
|
'content' => 'i:2;',
|
|
|
'used' => 0,
|
|
'used' => 0,
|
|
|
'created' => '2011-08-02 18:00:41',
|
|
'created' => '2011-08-02 18:00:41',
|
|
@@ -56,7 +56,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => '1',
|
|
'user_id' => '1',
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => '3mpzed7eoewsjvyvg4vy35',
|
|
|
|
|
|
|
+ 'token_key' => '3mpzed7eoewsjvyvg4vy35',
|
|
|
'content' => 'a:3:{s:10:"controller";s:4:"test";s:6:"action";s:3:"foo";i:0;s:3:"bar";}',
|
|
'content' => 'a:3:{s:10:"controller";s:4:"test";s:6:"action";s:3:"foo";i:0;s:3:"bar";}',
|
|
|
'used' => 1,
|
|
'used' => 1,
|
|
|
'created' => '2011-08-02 18:00:41',
|
|
'created' => '2011-08-02 18:00:41',
|
|
@@ -66,7 +66,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => '2',
|
|
'user_id' => '2',
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => 'af8ww4y7jxzq5n6npmjpxx',
|
|
|
|
|
|
|
+ 'token_key' => 'af8ww4y7jxzq5n6npmjpxx',
|
|
|
'content' => 's:13:"/test/foo/bar";',
|
|
'content' => 's:13:"/test/foo/bar";',
|
|
|
'used' => 1,
|
|
'used' => 1,
|
|
|
'created' => '2011-08-02 18:00:41',
|
|
'created' => '2011-08-02 18:00:41',
|
|
@@ -76,7 +76,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => '1',
|
|
'user_id' => '1',
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => '2s7i3zjw0rn009j4no552b',
|
|
|
|
|
|
|
+ 'token_key' => '2s7i3zjw0rn009j4no552b',
|
|
|
'content' => 'i:1;',
|
|
'content' => 'i:1;',
|
|
|
'used' => 0,
|
|
'used' => 0,
|
|
|
'created' => '2011-08-02 18:01:16',
|
|
'created' => '2011-08-02 18:01:16',
|
|
@@ -86,7 +86,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => '2',
|
|
'user_id' => '2',
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => 'tro596dig63cay0ps09vre',
|
|
|
|
|
|
|
+ 'token_key' => 'tro596dig63cay0ps09vre',
|
|
|
'content' => 'i:2;',
|
|
'content' => 'i:2;',
|
|
|
'used' => 0,
|
|
'used' => 0,
|
|
|
'created' => '2011-08-02 18:01:16',
|
|
'created' => '2011-08-02 18:01:16',
|
|
@@ -96,7 +96,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => '1',
|
|
'user_id' => '1',
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => 'penfangwc40x550wwvgfmu',
|
|
|
|
|
|
|
+ 'token_key' => 'penfangwc40x550wwvgfmu',
|
|
|
'content' => 'a:3:{s:10:"controller";s:4:"test";s:6:"action";s:3:"foo";i:0;s:3:"bar";}',
|
|
'content' => 'a:3:{s:10:"controller";s:4:"test";s:6:"action";s:3:"foo";i:0;s:3:"bar";}',
|
|
|
'used' => 1,
|
|
'used' => 1,
|
|
|
'created' => '2011-08-02 18:01:16',
|
|
'created' => '2011-08-02 18:01:16',
|
|
@@ -106,7 +106,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => '2',
|
|
'user_id' => '2',
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => '2y7m5srasm3ozej0izxbhe',
|
|
|
|
|
|
|
+ 'token_key' => '2y7m5srasm3ozej0izxbhe',
|
|
|
'content' => 's:13:"/test/foo/bar";',
|
|
'content' => 's:13:"/test/foo/bar";',
|
|
|
'used' => 1,
|
|
'used' => 1,
|
|
|
'created' => '2011-08-02 18:01:16',
|
|
'created' => '2011-08-02 18:01:16',
|
|
@@ -116,7 +116,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => '1',
|
|
'user_id' => '1',
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => '5c6dp2w54ynxii2xo3c50m',
|
|
|
|
|
|
|
+ 'token_key' => '5c6dp2w54ynxii2xo3c50m',
|
|
|
'content' => 'i:1;',
|
|
'content' => 'i:1;',
|
|
|
'used' => 0,
|
|
'used' => 0,
|
|
|
'created' => '2011-08-02 18:01:54',
|
|
'created' => '2011-08-02 18:01:54',
|
|
@@ -126,7 +126,7 @@ class TokensFixture extends TestFixture {
|
|
|
[
|
|
[
|
|
|
'user_id' => '2',
|
|
'user_id' => '2',
|
|
|
'type' => 'qlogin',
|
|
'type' => 'qlogin',
|
|
|
- 'token' => 'fr6a0d4waue2v6hmqeyek5',
|
|
|
|
|
|
|
+ 'token_key' => 'fr6a0d4waue2v6hmqeyek5',
|
|
|
'content' => 'i:2;',
|
|
'content' => 'i:2;',
|
|
|
'used' => 0,
|
|
'used' => 0,
|
|
|
'created' => '2011-08-02 18:01:54',
|
|
'created' => '2011-08-02 18:01:54',
|