Browse Source

密钥

master
Lemon 5 years ago
parent
commit
1ee430b8e7
  1. 2
      app/Service/v3/Implementations/StoreLoginService.php
  2. 2
      config/config.php

2
app/Service/v3/Implementations/StoreLoginService.php

@ -32,7 +32,7 @@ class StoreLoginService implements StoreLoginServiceInterface
function stringHash($password,$salt)
{
$authkey = config('lgoin.authkey');
$authkey = config('login.authkey');
$password = "{$password}-{$salt}-{$authkey}";
return sha1($password);
}

2
config/config.php

@ -52,7 +52,7 @@ return [
'alioss' => [
'img_host' => env('OSS_IMG_HOST', ''),
],
'lgoin' => [
'login' => [
'authkey' => env('STORE_LOGIN_AUTHKEY', ''),
],
'map' => [

Loading…
Cancel
Save