bla
This commit is contained in:
parent
3c6e2e3780
commit
edfb7e80bf
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -97,7 +97,7 @@ fastify.post('/login', async (request, reply) => {
|
|||
let content = request.body;
|
||||
if (content.hasOwnProperty("user")
|
||||
&& content.hasOwnProperty("password")) {
|
||||
if (UsersBDD.hasOwnProperty(content.user) {
|
||||
if (UsersBDD.hasOwnProperty(content.user)) {
|
||||
var hash;
|
||||
try {
|
||||
hash = CryptoJS.SHA512(content.password).toString();
|
||||
|
|
Loading…
Reference in a new issue