Skip to content

Commit 69182ea

Browse files
committed
resolved conflicts arised due to change in structure
2 parents f0f2cf7 + f34f53d commit 69182ea

File tree

5 files changed

+370
-29
lines changed

5 files changed

+370
-29
lines changed

models/user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import connector from "#models/databaseUtil";
2-
import { logger } from "#util";
2+
import { hashPassword, logger } from "#util";
33

44
connector.set("debug", true);
55
const userSchema = {
@@ -18,6 +18,7 @@ async function remove(filter) {
1818
}
1919

2020
async function create(name, password, emailId, uid, userType) {
21+
password = await hashPassword(password);
2122
const user = new User({
2223
name,
2324
password,

0 commit comments

Comments
 (0)