add base href

This commit is contained in:
Andrey Kuvshinov
2020-05-12 22:56:44 +03:00
parent 9b78944dcb
commit c8c7b598c7
8 changed files with 36 additions and 34 deletions

View File

@@ -126,7 +126,8 @@ function client_check_auth($login, $pwd){
return ['error' => 'client not found'];
}
$hash_pwd = md5($login.$client['clientpassword']);
$hash_pwd = client_secret($client['client_id'], $client['clientpassword']);
if ($pwd == $hash_pwd){
return ['data' => $client];
@@ -138,6 +139,11 @@ function client_check_auth($login, $pwd){
}
function client_secret($id, $password){
return md5($id.$password);
}
function client_add_password($client_id, $password, $confirm, $minlen = 5){