feat: app
This commit is contained in:
@@ -239,7 +239,7 @@ class KeystoreController extends Controller
|
||||
if (! $this->keystoreAllowed($keystore)) {
|
||||
return response()->json(['code' => 1, 'msg' => '无权操作'], 403);
|
||||
}
|
||||
if ((int) $keystore->needs_password !== 1) {
|
||||
if ((int) $keystore->needs_password !== 1 && ! $keystore->hasWeb3Keystore()) {
|
||||
return response()->json(['code' => 1, 'msg' => '该钥匙串未标记为需要密码'], 400);
|
||||
}
|
||||
$password = trim((string) $request->input('password', ''));
|
||||
|
||||
Reference in New Issue
Block a user