defined access check middleware, corrected login flow

This commit is contained in:
Mikayla Dobson
2022-11-22 18:02:59 -06:00
parent 700edc8e73
commit 1ee2cde280
5 changed files with 43 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ export default class AuthService {
bcrypt.genSalt(10, (err, salt) => {
if (err) throw err;
bcrypt.hash(password, salt, async (err, hash) => {
bcrypt.hash(password!, salt, async (err, hash) => {
if (err) throw err;
const newData = {
...data,