tpl: added warning for low-security change-password action

This commit is contained in:
Massimo Melina 2020-06-07 11:30:40 +02:00
parent 7c3f5929fa
commit 16744d7c6c

View File

@ -69,7 +69,7 @@ COMMENT with the ones above you can disable some features of the template. They
function changePwd() { function changePwd() {
{.if|{.can change pwd.} {.if|{.can change pwd.}
| ask('<i class="fa fa-key"></i> {.!Change password.}', 'password', function(s){ | ask('{.!Warning: the password will be sent unencrypted to the server. For better security change the password from HFS window..}<hr><i class="fa fa-key"></i> {.!Enter new password.}', 'password', function(s){
s && ajax('changepwd', {'new':s}, getStdAjaxCB(function(){ s && ajax('changepwd', {'new':s}, getStdAjaxCB(function(){
showLoading(false) showLoading(false)
showMsg("{.!Password changed.}") showMsg("{.!Password changed.}")