mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-07-04 11:27:57 +02:00
Fix self-host API key proxy auth
This commit is contained in:
@@ -1325,7 +1325,7 @@ const SettingsPanel = React.memo(function SettingsPanel({
|
||||
className={`flex-1 px-4 py-2.5 text-sm font-mono tracking-widest font-bold transition-colors flex items-center justify-center gap-1.5 ${activeTab === 'sentinel' ? 'text-purple-400 border-b-2 border-purple-500 bg-purple-950/10' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]'}`}
|
||||
>
|
||||
<Satellite size={10} />
|
||||
{t('settings.shodan').toUpperCase()}
|
||||
SENTINEL
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setActiveTab('sar')}
|
||||
|
||||
@@ -576,7 +576,7 @@ export default function ShodanPanel({
|
||||
fetch(`${API_BASE}/api/settings/api-keys`, {
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ env_key: 'SHODAN_API_KEY', value: shodanApiKey.trim() }),
|
||||
body: JSON.stringify({ SHODAN_API_KEY: shodanApiKey.trim() }),
|
||||
})
|
||||
.then(() => refreshStatus())
|
||||
.finally(() => setKeySaving(false));
|
||||
@@ -599,7 +599,7 @@ export default function ShodanPanel({
|
||||
fetch(`${API_BASE}/api/settings/api-keys`, {
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ env_key: 'SHODAN_API_KEY', value: shodanApiKey.trim() }),
|
||||
body: JSON.stringify({ SHODAN_API_KEY: shodanApiKey.trim() }),
|
||||
})
|
||||
.then(() => refreshStatus())
|
||||
.finally(() => setKeySaving(false));
|
||||
|
||||
Reference in New Issue
Block a user