diff --git a/src/main/twirl/gitbucket/core/account/edit.scala.html b/src/main/twirl/gitbucket/core/account/edit.scala.html index 2ba6424..a02c3de 100644 --- a/src/main/twirl/gitbucket/core/account/edit.scala.html +++ b/src/main/twirl/gitbucket/core/account/edit.scala.html @@ -72,7 +72,8 @@ addExtraMailAddress(); $('#extraMailAddresses').on('change', '.extraMailAddress', checkExtraMailAddress); $('#save').click(function(){ - if($('#password').val() != ''){ + let pwval = $('#password').val(); + if(typeof(pwval) != 'undefined' && pwval != ''){ return confirm('Are you sure you want to change password?'); } else { return true;