This commit is contained in:
Amish Shah
2016-09-14 16:35:32 +01:00
parent 69f947dfcb
commit 9308d2ead3
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -222,7 +222,8 @@ class RESTMethods {
data.avatar = this.rest.client.resolver.resolveBase64(_data.avatar) || user.avatar;
if (!user.bot) {
data.email = _data.email || user.email;
data.new_password = _data.newPassword;
data.password = this.rest.client.password;
if (_data.new_password) data.new_password = _data.newPassword;
}
this.rest.makeRequest('patch', Constants.Endpoints.me, true, data)