feat: app

This commit is contained in:
hashbro
2026-10-10 02:12:14 +08:00
parent 4f5764a2cd
commit 0ee7749262
3 changed files with 90 additions and 29 deletions
@@ -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', ''));