Fix for old password not showing/hiding correctly on admin users page #3069 (#3273)

This commit is contained in:
Jamie Townsend
2018-10-14 12:34:16 +01:00
committed by Sebastiaan Janssen
parent afa3e9b5eb
commit fb277d80e7

View File

@@ -93,8 +93,14 @@
//in the ASP.NET Identity world, this config option will allow an admin user to change another user's password
//if the user has access to the user section. So if this editor is being access, the user of course has access to this section.
//the authorization check is also done on the server side when submitted.
vm.changePasswordModel.config.allowManuallyChangingPassword = !vm.user.isCurrentUser;
// only update the setting if not the current logged in user, otherwise leave the value as it is
// currently set in the web.config
if (!vm.user.isCurrentUser)
{
vm.changePasswordModel.config.allowManuallyChangingPassword = true;
}
vm.loading = false;
});
});