diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-16 01:05:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-16 01:05:21 +0900 |
| commit | bce8c5a315330e6500faae37f559a5d114df69d3 (patch) | |
| tree | 1902bf52ef640afcacad6e72b100dc54cb64bdfe /src/server/api/endpoints/auth/accept.ts | |
| parent | Doc: Add "Init DB" section (#4695) (diff) | |
| download | sharkey-bce8c5a315330e6500faae37f559a5d114df69d3.tar.gz sharkey-bce8c5a315330e6500faae37f559a5d114df69d3.tar.bz2 sharkey-bce8c5a315330e6500faae37f559a5d114df69d3.zip | |
Refactor
Diffstat (limited to 'src/server/api/endpoints/auth/accept.ts')
| -rw-r--r-- | src/server/api/endpoints/auth/accept.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/auth/accept.ts b/src/server/api/endpoints/auth/accept.ts index a584e7267b..be7f3b5468 100644 --- a/src/server/api/endpoints/auth/accept.ts +++ b/src/server/api/endpoints/auth/accept.ts @@ -39,7 +39,7 @@ export default define(meta, async (ps, user) => { } // Generate access token - const accessToken = '1' + rndstr('a-zA-Z0-9', 15); + const accessToken = rndstr('a-zA-Z0-9', 32); // Fetch exist access token const exist = await AccessTokens.findOne({ |