mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix: register error message "email already exists"
This commit is contained in:
1 parent
1880b30029
commit
aa29098954
1 file changed
+1
-1
@@ -79,7 +79,7 @@ export async function register(req, res, next) {
|
|||||||
if (await User.exists({ email })) {
|
if (await User.exists({ email })) {
|
||||||
res.status(409).json({
|
res.status(409).json({
|
||||||
type: 'email',
|
type: 'email',
|
||||||
message: 'username already exists',
|
message: 'email already exists',
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user