diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-06 01:28:16 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-06 01:28:16 +0900 |
| commit | fa591e5c9b27752bbe55c28cb3f7f798558104a6 (patch) | |
| tree | 8947921f71eec8db8fbcc47c3c4f0d0103ffc1ac /src/api/private | |
| parent | Fix bug (diff) | |
| download | sharkey-fa591e5c9b27752bbe55c28cb3f7f798558104a6.tar.gz sharkey-fa591e5c9b27752bbe55c28cb3f7f798558104a6.tar.bz2 sharkey-fa591e5c9b27752bbe55c28cb3f7f798558104a6.zip | |
アクセストークンは i に統一
トークンの先頭に ! がプリフィックスされているかどうかでユーザー固有のトークンかどうか判別する
Diffstat (limited to 'src/api/private')
| -rw-r--r-- | src/api/private/signup.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/private/signup.ts b/src/api/private/signup.ts index c50b070052..592dfcceb1 100644 --- a/src/api/private/signup.ts +++ b/src/api/private/signup.ts @@ -48,7 +48,7 @@ export default async (req: express.Request, res: express.Response) => { const hash = bcrypt.hashSync(password, salt); // Generate secret - const secret = rndstr('a-zA-Z0-9', 32); + const secret = '!' + rndstr('a-zA-Z0-9', 32); // Create account const inserted = await User.insert({ |