add base href
This commit is contained in:
@@ -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){
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user