feat: detect password based on selector
This commit is contained in:
@@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user