Sfoglia il codice sorgente

Browsers autofill passwords in endpoint popup

This issue may cause unexpected behaviour when creating or editing an
endpoint.
To fix it, 2 inputs for user name and password are created off-screen
which the browsers autofills invisible to the user.
Sergiu Miclea 8 anni fa
parent
commit
0245d14847
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/components/organisms/Endpoint/index.jsx

+ 5 - 0
src/components/organisms/Endpoint/index.jsx

@@ -394,6 +394,11 @@ class Endpoint extends React.Component<Props, State> {
         {this.renderButtons()}
         <Tooltip />
         {Tooltip.rebuild()}
+        {/* Fix browsers autofilling password fields */}
+        <div style={{ position: 'absolute', left: '-10000px' }}>
+          <input type="text" />
+          <input type="password" />
+        </div>
       </Content>
     )
   }