yaml-admin-api 0.0.34 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml-admin-api",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "license": "MIT",
5
5
  "description": "YAML Admin API package",
6
6
  "type": "commonjs",
package/src/login/auth.js CHANGED
@@ -87,6 +87,7 @@ const withConfig = (config) => {
87
87
  let isPasswordMatch = await comparePassword(password, member.password)
88
88
  if (isPasswordMatch) {
89
89
  await db.collection('admin').updateOne({ email: email }, { $set: { login_date: new Date() } }, { upsert: false })
90
+ delete member.password;
90
91
  authenticateSuccess(req, res, member, next);
91
92
  } else
92
93
  res.json({ r: false, msg: '비밀번호가 일치하지 않습니다.' });