summaryrefslogtreecommitdiff
path: root/src/api/endpoints/auth
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-08 22:43:46 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-08 22:43:46 +0900
commit2b1cbcc8bfe98f31721fd1ae0808982dafdec352 (patch)
treeef0fc57252ec39b1aab2e07d13841e77729936d7 /src/api/endpoints/auth
parentMerge pull request #123 from syuilo/greenkeeper/riot-3.2.0 (diff)
downloadsharkey-2b1cbcc8bfe98f31721fd1ae0808982dafdec352.tar.gz
sharkey-2b1cbcc8bfe98f31721fd1ae0808982dafdec352.tar.bz2
sharkey-2b1cbcc8bfe98f31721fd1ae0808982dafdec352.zip
SHA256にした
Diffstat (limited to 'src/api/endpoints/auth')
-rw-r--r--src/api/endpoints/auth/accept.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/endpoints/auth/accept.js b/src/api/endpoints/auth/accept.js
index 90e6614514..04927ae50e 100644
--- a/src/api/endpoints/auth/accept.js
+++ b/src/api/endpoints/auth/accept.js
@@ -72,9 +72,9 @@ module.exports = (params, user) =>
});
// Generate Hash
- const sha512 = crypto.createHash('sha512');
- sha512.update(token + app.secret);
- const hash = sha512.digest('hex');
+ const sha256 = crypto.createHash('sha256');
+ sha256.update(token + app.secret);
+ const hash = sha256.digest('hex');
// Insert access token doc
await AccessToken.insert({