mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +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 })) {
|
||||
res.status(409).json({
|
||||
type: 'email',
|
||||
message: 'username already exists',
|
||||
message: 'email already exists',
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user