admin password hotfix

This commit is contained in:
Ricsi
2016-12-07 15:58:20 +01:00
parent 8350c1f546
commit 08627484da
2 changed files with 27 additions and 11 deletions

View File

@@ -142,9 +142,12 @@ if (isset($_POST['action'])) {
break;
case 'coach_data_edit':
# edző update
if (isset($_POST['ua_can_login']) && !empty($_POST['ua_can_login'])) {
if (isset($_POST['ua_can_login']) && !empty($_POST['ua_can_login']) && !empty($_POST['ua_password'])) {
$psw = md5($_POST['ua_password']);
}
elseif (isset($_POST['ua_can_login']) && !empty($_POST['ua_can_login']) && empty($_POST['ua_password'])) {
$psw = "-1"; //ez jelzi h nem szabad updatelni
}
else {
$psw = "null";
}