feat: detect password based on selector

This commit is contained in:
amhsirak
2025-01-25 16:12:45 +05:30
parent 7a017f5bd8
commit c46b3e2b75

View File

@@ -99,7 +99,7 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin
const determineCredentialType = (selector: string, info: CredentialInfo): 'password' | 'email' | 'username' | 'other' => { const determineCredentialType = (selector: string, info: CredentialInfo): 'password' | 'email' | 'username' | 'other' => {
// Check for password type first // Check for password type first
if (info.type === 'password') { if (info.type === 'password' || selector.toLowerCase().includes('password')) {
return 'password'; return 'password';
} }