Vanwege onderhoudswerkzaamheden die uw ervaring zouden moeten verbeteren, heeft deze website beperkte functionaliteit. Als een artikel uw probleem niet verhelpt en u een vraag wilt stellen, kan onze ondersteuningsgemeenschap u helpen in @FirefoxSupport op Twitter en /r/firefox op Reddit.

Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Meer info

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

In some website password is filling but username NOT

  • 9 antwoorden
  • 1 heeft dit probleem
  • 21 weergaven
  • Laatste antwoord van cor-el

more options

Hi for the website https://jh.railwire.co.in/ my password is getting filled but my username is not filling. Things that I have tried 1. I have checked the Mozilla in safe mode 2. There is not option in context menu to fill the username 3. I am not using the any password manager

Below is the code after inspecting the code

```html

<div class="form-group">
         <input id="username" type="username" class="form-control " name="username" value="" required="" autocomplete="off" autofocus="" placeholder="Enter User Name">
        </div>
        <div class="form-group">
         <input id="password" type="password" class="form-control " name="password" required="" autocomplete="off" placeholder="Enter Password">
        </div>

```

Also attached the screenshot of the browser with username field empty Firefox is up to date version: 96.0.3 (64-bit) System: MacOS Mojave 10.14.6 (18G95)

Hi for the website https://jh.railwire.co.in/ my password is getting filled but my username is not filling. Things that I have tried 1. I have checked the Mozilla in safe mode 2. There is not option in context menu to fill the username 3. I am not using the any password manager Below is the code after inspecting the code ```html <pre><nowiki><div class="form-group"> <input id="username" type="username" class="form-control " name="username" value="" required="" autocomplete="off" autofocus="" placeholder="Enter User Name"> </div> <div class="form-group"> <input id="password" type="password" class="form-control " name="password" required="" autocomplete="off" placeholder="Enter Password"> </div> </nowiki></pre><br>``` Also attached the screenshot of the browser with username field empty Firefox is up to date version: 96.0.3 (64-bit) System: MacOS Mojave 10.14.6 (18G95)

Bewerkt door cor-el op

Alle antwoorden (9)

more options

This website doesn't load for me, so I can't check and test this, but I assume that this is caused by the type="username" attribute for the #username input field. Firefox expects type="text" for the username field. You can edit the value of this field via the right-click context menu in the Inspector to see if that has effect. If the type is 'text' then the context menu should have a "Fill Login". You can edit this login in Lockwise to have the correct username stored.

You can right-click and select "Inspect" to open the built-in Inspector with this element selected.

You can possibly use this bookmarklet to set the type of the currently active input field to text. You can create a new bookmark on the Bookmarks Toolbar and paste the JavaScript code in its Location field. You need to click in the username input field to set focus to this field before you click the button of the login bookmark on the Bookmarks Toolbar.

javascript:/*LOGIN:fix-type username*/(function(){
var I=1,T,Z=0;
var A=document.activeElement,E;
if(A.nodeName.toLowerCase()=='input'){
T=A.getAttribute('type');
if((T!='text')&&(T!='password')){A.setAttribute('type','text');Z=1}
if(I){alert('input: '+['<'+T+'>','<fixed-type>'][Z])}
}
})()

more options

Make sure the link you posted is correct. It still does not open.

more options

https://downforeveryoneorjustme.com/ Jh.railwire.co.in Status Is jh.railwire.co.in down right now? It's not just you! jh.railwire.co.in is down.

more options

Thanks for the update. https://jh.railwire.co.in/ is not down btw it could be only accessible in India.

Can this be fixed in mozilla itself as chrome correctly fills the username and password in the same field.

Also changing the type from "usename" to "text" did help in bringing the saved login option in the context menu

BTW javascript:/*LOGIN:fix-type username*/(function(){ var I=1,T,Z=0; var A=document.activeElement,E; if(A.nodeName.toLowerCase()=='input'){ T=A.getAttribute('type'); if((T!='text')&&(T!='password')){A.setAttribute('type','text');Z=1} if(I){alert('input: '+['<'+T+'>','<fixed-type>'][Z])} } })() is also very neat and geeky. But it will not be understandable by the non technical background people

Bewerkt door atlgpt17 op

more options

Thanks for the update. https://jh.railwire.co.in/ is not down btw it could be only accessible in India.

Can this be fixed in mozilla itself as chrome correctly fills the username and password in the same field.

Also changing the type from "usename" to "text" did help in bringing the saved login option in the context menu

BTW javascript:/*LOGIN:fix-type username*/(function(){ var I=1,T,Z=0; var A=document.activeElement,E; if(A.nodeName.toLowerCase()=='input'){ T=A.getAttribute('type'); if((T!='text')&&(T!='password')){A.setAttribute('type','text');Z=1} if(I){alert('input: '+['<'+T+'>','<fixed-type>'][Z])} } })() is also very neat and geeky. But it will not be understandable by the non technical background people

more options

You can first copy the full text I posted above starting with javascript and ending with the closing parenthesis () to the clipboard (select the text with the mouse and press "Ctrl+C" to place the selection on the clipboard). You may have to enable the Bookmarks Toolbar via "Ctrl+Shift+B" if this toolbar currently is hidden. You can right-click the Bookmarks Toolbar and click "Add Bookmark...". You enter a name like 'rwci' (to refer to railwire.co.in) in the Name field. In the URL field you paste the javascript code you previously placed on the clipboard via "Ctrl+V". You can click the OK key to confirm the new bookmark.

When you want to login on the jh.railwire.co.in website then you left-click the username field to set focus to this field. Once this field has focus then you can click the rwci button on the Bookmarks Toolbar to invoke the JavaScript code. This should change the type from username to text to make the Password Manager detect this as a login field.

You can also consider to contact the website and ask them to change the type of the username field form 'username' to 'text'.

more options

Hi @cor-el I am able to add the bookmark but my concern is that this should be handled by the browser itself as other browsers like chrome handles it and fills the username. In my case it worked but what will happen to those users who has not raised this issue and still facing the issue. Also thanks for the suggestion and all the help. If you feel this is no longer actionable on you... then you can close this ticket

more options

Are you considering contacting the website about this issue because it isn't common to set the type of an input field to username as this isn't a standard value for an input field ?

When it comes to login data then security is important and more strict and websites should meet minimum standards.

more options

You can mark one of your own replies or one of my replies as the solution to mark the thread as solved and close it. It is up to you to decide this.