I think I finally solved a part of the problem, I went to server > server settings > registration & login
, and disabled Anonymous Login.
What I did before, is going to server > server manager > system properties
, and set xmpp.auth.anonymous to false.
And now, another problem raised, no user can log in... the js code in the first post shows now these status messages :
1 (connecting)
2 (connection failed)
7 (disconnecting)
6 (disconnected)
It seems things get worse after disabling annonymous login. It seems that :
1- Before disabling Anonymous Login: Every user (even with incorrect jid or pass) can authenticate and get connected to the server.
2- After disabling Anonymous Login : Strophe can't even connect to the server.
Any idea?
Edit
I found what's wrong. when testing: I was typing the username, and not the username@server combination (which is the default user jid)... I thought the jid is the username. problem solved