Admidio / admidio

Admidio is a free open source user management system for websites of organizations and groups. The system has a flexible role model so that it’s possible to reflect the structure and permissions of your organization.
https://www.admidio.org
GNU General Public License v2.0
336 stars 131 forks source link

After installation, unable to login with administrator credentials, "Your login data were correct but you are not an active member of this organization" #1302

Closed kylebial0 closed 2 years ago

kylebial0 commented 2 years ago

After the initial installation of Admidio, I am unable to login to the organization that was created. When I attempt logging in with the credentials created during installation, I receive the error "Your login data were correct but you are not an active member of this organization."

I have made sure the credentials are correct, reinstalling the software, and re-creating the mysql database.

I can confirm there have been tables made in the database, so it appears the installation completed successfully.

Anyone have any ideas on how to correct this issue?

kylebial0 commented 2 years ago

Update: After downgrading to 4.1.1.3, I am no longer having this issue.

Fasse commented 2 years ago

Hmm that is strange. I tested it with 4.1.14 and I could login with the user I created during installation.

kylebial0 commented 2 years ago

After further playing around, I found this was only an issue while cloning the master repo.

I could have been doing something wrong, but I had no issue when downloading the tarball for releases 4.1.13 and 4.1.14.

For research purposes, I am running Ubuntu 22.04 and hosting using Apache2.

vmindru commented 2 years ago

Same here deployed from admidio/admidio:latest

vmindru commented 2 years ago

using PSQL

Fasse commented 2 years ago

The reason is the same as the bug report from @vmindru and will be fixed with the some commit of #1305

zharfanw commented 1 year ago

For solving it, i just bypass the requirements of isMemberOfOrganization() function by remove mem_begin/mem_end. image

idk, why? maybe it required like quotation mark("") on query syntax(on Mysql database) image without it, it will return nothing.

but when i add quotation mark("") in php file, there's no respond on website.

My DB engine: Server type: MariaDB Server version: 10.6.14-MariaDB-cll-lve - MariaDB Server Protocol version: 10 Database client version: libmysql - mysqlnd 8.1.16 PHP extension: mysqli Documentation curl Documentation mbstring Documentation PHP version: 8.1.16