修改用户名&多任务奖励
This commit is contained in:
@@ -51,6 +51,13 @@ exports.route = function (app) {
|
||||
UsersController.EditEmail,
|
||||
]);
|
||||
|
||||
//Body: username
|
||||
app.post("/users/username/edit", app.auth_limiter, [
|
||||
AuthTool.isValidJWT,
|
||||
AuthTool.isPermissionLevel(USER),
|
||||
UsersController.EditUsername,
|
||||
]);
|
||||
|
||||
//Body: password_previous, password_new
|
||||
app.post("/users/password/edit", app.auth_limiter, [
|
||||
AuthTool.isValidJWT,
|
||||
|
||||
Reference in New Issue
Block a user