Author Topic: Problem with adding new users  (Read 920 times)

0 Members and 1 Guest are viewing this topic.

zhomart

  • Jr. Member
  • **
  • Posts: 1
Problem with adding new users
« on: January 15, 2025, 10:02:44 AM »
I need to add new users to mibew. In the mibewoperator table there is a user booster, he is an operator. I know his password. There is also a user admin and I forgot his password, and his password is hashed in the DB. I can't recover the password because the message does not arrive in the mail. That's why I can't add users via the admin panel, because I don't know the admin password. I copied the booster hashed password and put it to admin in DB. But I always get the error "Incorrect login or password". How can I deal with this situation?

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 952
    • Mibew Messenger
Re: Problem with adding new users
« Reply #1 on: January 22, 2025, 10:41:13 AM »
First of all, you'd better fix the email issue.

Second of all, take a look at this part of the code. Mibew Messenger tries to salt the password if it's possible. So, if you really need to alter the password directly in the database, you should calculate it manually. Or just set it to md5 hash of the password as it is written in the FAQ.

Otherwise, one could simply give your known user administrative permissions. It's defined by iperm field in the very same mibewoperator table.
« Last Edit: January 22, 2025, 11:07:26 AM by faf »