summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-08 20:29:52 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-08 20:29:52 +0900
commit735687be21b08a11bf167663b9336a56eeb05313 (patch)
treeca3dae42affa74e83e62d22471fb17cd098816f6 /src/models
parentFix (diff)
downloadmisskey-735687be21b08a11bf167663b9336a56eeb05313.tar.gz
misskey-735687be21b08a11bf167663b9336a56eeb05313.tar.bz2
misskey-735687be21b08a11bf167663b9336a56eeb05313.zip
update token generation
Diffstat (limited to 'src/models')
-rw-r--r--src/models/entities/user.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models/entities/user.ts b/src/models/entities/user.ts
index 1ef98cadc2..0a2878c0c9 100644
--- a/src/models/entities/user.ts
+++ b/src/models/entities/user.ts
@@ -255,8 +255,8 @@ export class User {
public password: string | null;
@Index({ unique: true })
- @Column('varchar', {
- length: 32, nullable: true, unique: true,
+ @Column('char', {
+ length: 16, nullable: true, unique: true,
comment: 'The native access token of the User. It will be null if the origin of the user is local.'
})
public token: string | null;