diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-08 22:43:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-08 22:43:46 +0900 |
| commit | 2b1cbcc8bfe98f31721fd1ae0808982dafdec352 (patch) | |
| tree | ef0fc57252ec39b1aab2e07d13841e77729936d7 /src/api/endpoints | |
| parent | Merge pull request #123 from syuilo/greenkeeper/riot-3.2.0 (diff) | |
| download | sharkey-2b1cbcc8bfe98f31721fd1ae0808982dafdec352.tar.gz sharkey-2b1cbcc8bfe98f31721fd1ae0808982dafdec352.tar.bz2 sharkey-2b1cbcc8bfe98f31721fd1ae0808982dafdec352.zip | |
SHA256にした
Diffstat (limited to 'src/api/endpoints')
| -rw-r--r-- | src/api/endpoints/auth/accept.js | 6 |
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({ |