steve-community / steve

SteVe - OCPP server implementation in Java
GNU General Public License v3.0
728 stars 365 forks source link

Multiple Webusers login #1491

Open nimraidris opened 3 weeks ago

nimraidris commented 3 weeks ago

I added a new user's username and password using the database and enabled the authority, but I am unable to log in with this user. I can only log in with the auth.user and auth.password mentioned in the main properties. However, I can see my new web user in Data Management > Web Users.

fnkbsi commented 2 weeks ago

Are you revering to the pull request #1165 (web user sound like that) or steve master? For the PR: Use SteVe (additional sites are part of the PR) to add the web user, because only a hash of the password will saved.

nimraidris commented 2 weeks ago

I created a new user through Steve still it's not working I already followed the steps given in #1165.

Screenshot 2024-06-19 163923

Screenshot 2024-06-19 164152

fnkbsi commented 2 weeks ago

It works on my system, so I don't know what's happening on your system.

The DB migration script should have create an webuser 'admin' with the password 'pass'. Did this webuser exist and could you enter the websites with those credentials?

Your first webuser seems to have a short password entry. Can you enter the website with those credentials?

fnkbsi commented 2 weeks ago

@nimraidris: I like a thumbs up, but how do I interpret it in this case? Does it work now? If yes, why?

nimraidris commented 2 weeks ago

@fnkbsi Yeah, it works for me I deleted the target and reinstall again, and I used #1165 as mentioned.