mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 17:55:59 +02:00
feat: added PUT /api/v1/users/:uid/password route
This commit is contained in:
@@ -78,6 +78,8 @@ module.exports = function (SocketUser) {
|
||||
}
|
||||
|
||||
SocketUser.changePassword = async function (socket, data) {
|
||||
sockets.warnDeprecated(socket, 'PUT /api/v1/users/:uid/password');
|
||||
|
||||
if (!socket.uid) {
|
||||
throw new Error('[[error:invalid-uid]]');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user