From 2b1cbcc8bfe98f31721fd1ae0808982dafdec352 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 8 Feb 2017 22:43:46 +0900 Subject: SHA256にした MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/endpoints/auth/accept.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api') 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({ -- cgit v1.2.3-freya