mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add error handling for choose username
This commit is contained in:
1 parent
f65b72c5b4
commit
bcfdf15559
4 files changed
+81
-48
No files matched your search
@@ -75,7 +75,7 @@ export async function registerFromSession(req, res) {
|
||||
const { newUser } = req.session
|
||||
|
||||
if (!newUser) {
|
||||
res.status(400).json({
|
||||
res.status(401).json({
|
||||
message: 'no new user found',
|
||||
})
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user