mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Piccole migliorie
This commit is contained in:
@@ -47,9 +47,13 @@ if (!empty($user)) {
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
function no_check_pwd(){
|
||||
$("#password").attr("disabled", true);
|
||||
$("#submit-button").attr("disabled", false).removeClass("disabled");
|
||||
}
|
||||
|
||||
$("#bs-popup").on("shown.bs.modal", function () {
|
||||
no_check_pwd();
|
||||
});
|
||||
|
||||
$("#change_password").change(function() {
|
||||
@@ -57,13 +61,14 @@ if (!empty($user)) {
|
||||
$("#password").attr("disabled", false);
|
||||
$("#password").change();
|
||||
} else {
|
||||
$("#password").attr("disabled", true);
|
||||
$("#submit-button").attr("disabled", false).removeClass("disabled");
|
||||
no_check_pwd();
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
include $structure->filepath('components/password.php');
|
||||
|
||||
echo '
|
||||
|
||||
@@ -14,7 +14,7 @@ switch ($name) {
|
||||
['id', '<>', $id_record],
|
||||
])->count() == 0;
|
||||
|
||||
$message = $disponibile ? tr("L'username è disponbile") : tr("L'username è già utilizzato");
|
||||
$message = $disponibile ? tr("L'username è disponbile") : tr("L'username è già in uso");
|
||||
$result = $disponibile;
|
||||
|
||||
// Lunghezza minima del nome utente (username)
|
||||
|
||||
Reference in New Issue
Block a user