title: Ejabberd version 17.11 - getting "Failed c2s PLAIN authentication" error message
body: <p>I have installed the Ejabberd version 17.11 in our server. After the intallation, the user is able to connect with the Ejabberd service 1st time successfully. But once the session ended by that user and if the same user tries to connect again then we are getting the below error message.</p>
  
  <p>websocket|&lt;0.574.0>) Failed c2s PLAIN authentication for user@domain from xx.xx.xxx.xxx: Invalid username or password</p>
  
  <p><strong>Note:</strong>
  While closing the session by the user we are getting below messages. Is that is the reason for not able to connect after 1st time for the same user?</p>
  
  <p>(websocket|&lt;0.534.0>) Closing c2s session for user@domain/reg_agent: Connection failed: connection closed
  [info] Removing any push sessions of user@domain</p>