fix: default to API token auth when adding discovered servers

Changed the default authentication method from username/password to API token when clicking on auto-discovered servers. API tokens are more secure and the recommended approach for most users.
This commit is contained in:
Pulse Monitor
2025-08-10 09:16:39 +00:00
parent 1da7ca4ea7
commit 10b5e5bf63
@@ -51,7 +51,7 @@ export const NodeModal: Component<NodeModalProps> = (props) => {
setFormData({
name: node.name || '',
host: node.host || '',
authType: node.tokenName ? 'token' : 'password',
authType: node.tokenName ? 'token' : 'token', // Default to token auth (more secure)
setupMode: 'auto',
user: node.user || '',
password: '', // Don't show existing password