summaryrefslogtreecommitdiff
path: root/src/api/private
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-06 01:28:16 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-06 01:28:16 +0900
commitfa591e5c9b27752bbe55c28cb3f7f798558104a6 (patch)
tree8947921f71eec8db8fbcc47c3c4f0d0103ffc1ac /src/api/private
parentFix bug (diff)
downloadsharkey-fa591e5c9b27752bbe55c28cb3f7f798558104a6.tar.gz
sharkey-fa591e5c9b27752bbe55c28cb3f7f798558104a6.tar.bz2
sharkey-fa591e5c9b27752bbe55c28cb3f7f798558104a6.zip
アクセストークンは i に統一
トークンの先頭に ! がプリフィックスされているかどうかでユーザー固有のトークンかどうか判別する
Diffstat (limited to 'src/api/private')
-rw-r--r--src/api/private/signup.ts2
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({