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 +1 -1
- package/src/login/auth.js +1 -0
package/package.json
CHANGED
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: '비밀번호가 일치하지 않습니다.' });
|