Leave the password field already filled [closed]

-1

I'm modifying a chat application, which supports 50 people per room, 40 normal 10 for subscribers, When the user is going to enter a more with 40 people the application will ask for the subscriber login and password. I have the login and the password but it does not provide the user. Example: Instead of asking for login and password, the program already fills automatically and the user only clicks on ENTER.

    
asked by anonymous 10.03.2018 / 21:48

1 answer

1

You should use the type attribute to declare the field as a password

<input type="text" value="logindousuario">
<br/>
<input type="password" value="senhadousuario">

But I do not recommend you do this because you expose the user's password, which you should not even be storing ... There are other techniques like cookies and sessions to keep your user logged in so he does not have to type his password password. ~

  

Editing:

     

If the user just clicks enter. There is no need to   or display the input fields for that data. If   you still need the user to impersonate your credentials   just log in to the backend informing your data   pre-defined for login.

    
10.03.2018 / 21:59