Skip to content

Commit

Permalink
fix build : update login
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansourkira committed Mar 19, 2024
1 parent 02070f3 commit 749b06a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions www/src/@sikka/hajar/core/auth/login.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { sign } from "jsonwebtoken";
import { compare } from "bcrypt";
import init from "../init.js";
const { User, secret, getClientData, getAdminData, getUserType } = init;
import * as initHajarModule from "../init.js";
const { User, secret, getClientData, getAdminData, getUserType } =
initHajarModule;

async function login(email, password) {
const user = await User.findOne({ email });
Expand Down

0 comments on commit 749b06a

Please sign in to comment.