|
|
|
|
@ -31,6 +31,7 @@ API.v1.addRoute('users.create', { authRequired: true }, { |
|
|
|
|
username: String, |
|
|
|
|
active: Match.Maybe(Boolean), |
|
|
|
|
bio: Match.Maybe(String), |
|
|
|
|
nickname: Match.Maybe(String), |
|
|
|
|
statusText: Match.Maybe(String), |
|
|
|
|
roles: Match.Maybe(Array), |
|
|
|
|
joinDefaultChannels: Match.Maybe(Boolean), |
|
|
|
|
@ -436,6 +437,7 @@ API.v1.addRoute('users.update', { authRequired: true, twoFactorRequired: true }, |
|
|
|
|
password: Match.Maybe(String), |
|
|
|
|
username: Match.Maybe(String), |
|
|
|
|
bio: Match.Maybe(String), |
|
|
|
|
nickname: Match.Maybe(String), |
|
|
|
|
statusText: Match.Maybe(String), |
|
|
|
|
active: Match.Maybe(Boolean), |
|
|
|
|
roles: Match.Maybe(Array), |
|
|
|
|
@ -473,6 +475,7 @@ API.v1.addRoute('users.updateOwnBasicInfo', { authRequired: true }, { |
|
|
|
|
email: Match.Maybe(String), |
|
|
|
|
name: Match.Maybe(String), |
|
|
|
|
username: Match.Maybe(String), |
|
|
|
|
nickname: Match.Maybe(String), |
|
|
|
|
statusText: Match.Maybe(String), |
|
|
|
|
currentPassword: Match.Maybe(String), |
|
|
|
|
newPassword: Match.Maybe(String), |
|
|
|
|
@ -484,6 +487,7 @@ API.v1.addRoute('users.updateOwnBasicInfo', { authRequired: true }, { |
|
|
|
|
email: this.bodyParams.data.email, |
|
|
|
|
realname: this.bodyParams.data.name, |
|
|
|
|
username: this.bodyParams.data.username, |
|
|
|
|
nickname: this.bodyParams.data.nickname, |
|
|
|
|
statusText: this.bodyParams.data.statusText, |
|
|
|
|
newPassword: this.bodyParams.data.newPassword, |
|
|
|
|
typedPassword: this.bodyParams.data.currentPassword, |
|
|
|
|
|