Merge pull request #928 from sinthuja/master

Fixing the issue in resetting the password for the email user
This commit is contained in:
Ruwan 2017-08-30 14:32:07 +05:30 committed by GitHub
commit 72956afd5a

View File

@ -157,7 +157,7 @@ function resetPassword(username) {
domain = username.substr(0, username.indexOf('/')); domain = username.substr(0, username.indexOf('/'));
username = username.substr(username.indexOf('/') + 1); username = username.substr(username.indexOf('/') + 1);
} }
var resetPasswordServiceURL = apiBasePath + "/admin/users/" + username + "/credentials"; var resetPasswordServiceURL = apiBasePath + "/admin/users/" + encodeURIComponent(username) + "/credentials";
if (domain) { if (domain) {
resetPasswordServiceURL += '?domain=' + encodeURIComponent(domain); resetPasswordServiceURL += '?domain=' + encodeURIComponent(domain);
} }