changing fields in account is done and upd chats retrieval
This commit is contained in:
1 parent
86db5df813
commit
25c3e16c74
8 files changed
+81
-15
No files matched your search
@@ -16,6 +16,7 @@ changeRouter.post('/nickname', (req, res) => {
|
||||
// Invalid identification
|
||||
if (!user) {
|
||||
res.status(401).send({message: 'Invalid credentials (id)'});
|
||||
return;
|
||||
}
|
||||
|
||||
const updatedUser = {
|
||||
@@ -42,6 +43,7 @@ changeRouter.post('/password', (req, res) => {
|
||||
// Invalid identification
|
||||
if (!user) {
|
||||
res.status(401).send({message: 'Invalid credentials (id)'});
|
||||
return;
|
||||
}
|
||||
|
||||
// Delete the old one
|
||||
|
||||
Reference in new issue
Block a user