add reminder
This commit is contained in:
@@ -252,7 +252,6 @@ function client_secret($id, $password){
|
||||
|
||||
function client_add_password($client_id, $password, $confirm, $minlen = 5){
|
||||
|
||||
|
||||
if ($password == ''){
|
||||
return 'пароль не задан';
|
||||
}
|
||||
@@ -268,11 +267,8 @@ function client_add_password($client_id, $password, $confirm, $minlen = 5){
|
||||
$clientpassword = password_hash($password, PASSWORD_DEFAULT);
|
||||
$sqlupdate = "UPDATE `clients` SET `clientpassword` = '$clientpassword' WHERE `client_id` = '$client_id'";
|
||||
|
||||
|
||||
$result = db_get($sqlupdate, 'chitatel');
|
||||
|
||||
|
||||
|
||||
return ['newpassword' => $clientpassword];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user