remove jssha and add bcrypt for password hashing with salt
This commit is contained in:
@@ -45,8 +45,7 @@
|
||||
}
|
||||
|
||||
const URL = '/api/users';
|
||||
const hashedUserPassword = new jsSHA('SHA-512', 'TEXT').update(userPassword).getHash('HEX');
|
||||
const userData = { userName: userName, userPassword: hashedUserPassword };
|
||||
const userData = { userName: userName, userPassword: userPassword };
|
||||
|
||||
try {
|
||||
const response = await fetch(URL, {
|
||||
|
||||
Reference in New Issue
Block a user