Merge pull request #796 from Kamidu/master

fixing the password reset issue
4.x.x
inoshperera 7 years ago committed by GitHub
commit 4cc9222226

@ -134,8 +134,8 @@ function resetPassword(username) {
$("a#reset-password-yes-link").click(function () { $("a#reset-password-yes-link").click(function () {
var newPassword = $("#basic-modal-view .new-password").val(); var newPassword = $("#basic-modal-view .new-password").val();
var confirmedPassword = $("#basic-modal-view .confirmed-password").val(); var confirmedPassword = $("#basic-modal-view .confirmed-password").val();
var errorMsgWrapper = "#notification-error-msg"; var errorMsgWrapper = ".modal #notification-error-msg";
var errorMsg = "#notification-error-msg span"; var errorMsg = ".modal #notification-error-msg span";
if (!newPassword) { if (!newPassword) {
$(errorMsg).text("New password is a required field. It cannot be empty."); $(errorMsg).text("New password is a required field. It cannot be empty.");
$(errorMsgWrapper).removeClass("hidden"); $(errorMsgWrapper).removeClass("hidden");

Loading…
Cancel
Save