mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 10:43:36 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user