[GH-ISSUE #1815] 🐛 [Bug] Setting is not saved correctly #715

Open
opened 2026-02-25 21:35:44 +03:00 by kerem · 8 comments
Owner

Originally created by @kevinend51 on GitHub (Dec 23, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1815

Originally assigned to: @IrAlfred on GitHub.

🐛 Bug

Here's my cypht's docker compose:

services:
  mariadb:
    image: mariadb:12.1.2
    restart: unless-stopped
    volumes:
      - cypht-mysql:/var/lib/mysql
    healthcheck:
      test: healthcheck.sh --connect --innodb_initialized
    environment:
      MYSQL_ROOT_PASSWORD: XXXXX
      MYSQL_DATABASE: cypht
      MYSQL_USER: cypht
      MYSQL_PASSWORD: XXXXX
      MARIADB_AUTO_UPGRADE: true
  cypht:
    depends_on:
      mariadb:
        condition: service_healthy
    image: cypht/cypht:2.5.1
    ports:
      - XXXXX
    environment:
      DB_CONNECTION_TYPE: host
      DB_DRIVER: mysql
      DB_HOST: mariadb
      DB_NAME: cypht
      AUTH_TYPE: LDAP
      DB_USER: cypht
      DB_PASS: XXXXX
      SESSION_TYPE: LDAP
      USER_CONFIG_TYPE: DB
      LDAP_AUTH_PORT: XXXXX
      LDAP_AUTH_SERVER: XXXXX
      LDAP_AUTH_TLS:
      LDAP_AUTH_BASE_DN: XXXXX
      LDAP_UID_ATTR: cn
      LDAP_AUTH_UID_ATTR: cn
volumes:
  cypht-mysql:

After a fresh start, I perform the following step:

  1. Login with LDAP account
  2. Add a email (gmail)
  3. Save settings with entering LDAP password again to confirm
  4. Open a new private tab, login with the same LDAP account, it shows "no email setup":
Image

Version & Environment

Rev: cypht/cypht:2.5.1

OS: []

Originally created by @kevinend51 on GitHub (Dec 23, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1815 Originally assigned to: @IrAlfred on GitHub. <!-- You can find the latest issue templates here https://github.com/ulfgebhardt/issue-templates --> ## 🐛 Bug <!-- Describe your issue in detail. Include screenshots if needed. Give us as much information as possible. Use a clear and concise description of what the bug is.--> Here's my cypht's docker compose: ``` services: mariadb: image: mariadb:12.1.2 restart: unless-stopped volumes: - cypht-mysql:/var/lib/mysql healthcheck: test: healthcheck.sh --connect --innodb_initialized environment: MYSQL_ROOT_PASSWORD: XXXXX MYSQL_DATABASE: cypht MYSQL_USER: cypht MYSQL_PASSWORD: XXXXX MARIADB_AUTO_UPGRADE: true cypht: depends_on: mariadb: condition: service_healthy image: cypht/cypht:2.5.1 ports: - XXXXX environment: DB_CONNECTION_TYPE: host DB_DRIVER: mysql DB_HOST: mariadb DB_NAME: cypht AUTH_TYPE: LDAP DB_USER: cypht DB_PASS: XXXXX SESSION_TYPE: LDAP USER_CONFIG_TYPE: DB LDAP_AUTH_PORT: XXXXX LDAP_AUTH_SERVER: XXXXX LDAP_AUTH_TLS: LDAP_AUTH_BASE_DN: XXXXX LDAP_UID_ATTR: cn LDAP_AUTH_UID_ATTR: cn volumes: cypht-mysql: ``` After a fresh start, I perform the following step: 1. Login with LDAP account 2. Add a email (gmail) 3. Save settings with entering LDAP password again to confirm 4. Open a new private tab, login with the same LDAP account, it shows "no email setup": <img width="1853" height="970" alt="Image" src="https://github.com/user-attachments/assets/fe7f1aad-8e0d-4d89-b065-bef7aeefe4db" /> ### Version & Environment <!-- Paste Git-Commit ID or Tag-Name here --> Rev: cypht/cypht:2.5.1 <!-- Specify your OS and OS Version here if the issue is (most likely) platform dependent. --> OS: []
Author
Owner

@IrAlfred commented on GitHub (Dec 23, 2025):

Thank you @kevinend51 for reporting this, we are going to investigate about it !

<!-- gh-comment-id:3685267144 --> @IrAlfred commented on GitHub (Dec 23, 2025): Thank you @kevinend51 for reporting this, we are going to investigate about it !
Author
Owner

@IrAlfred commented on GitHub (Jan 16, 2026):

Hi @kevinend51

We have been unable to reproduce this issue on our end. Could you please retest to confirm it's still occurring?

If the problem persists, we can schedule a brief screenshare session to investigate further. To coordinate, please send me a direct message (DM) on Matrix at https://matrix.to/#/@iralfred:gitter.im (user: @iralfred).

<!-- gh-comment-id:3758216764 --> @IrAlfred commented on GitHub (Jan 16, 2026): Hi @kevinend51 We have been unable to reproduce this issue on our end. Could you please retest to confirm it's still occurring? If the problem persists, we can schedule a brief screenshare session to investigate further. To coordinate, please send me a direct message (DM) on Matrix at https://matrix.to/#/@iralfred:gitter.im (user: @iralfred).
Author
Owner

@moxventura commented on GitHub (Jan 19, 2026):

@kevinend51 I just noticed your mariadb version is set to 12.1.2 while the examples suggest mariadb:10 did you test if it works with mariadb:10?

<!-- gh-comment-id:3770146683 --> @moxventura commented on GitHub (Jan 19, 2026): @kevinend51 I just noticed your mariadb version is set to 12.1.2 while the examples suggest mariadb:10 did you test if it works with mariadb:10?
Author
Owner

@kevinend51 commented on GitHub (Jan 20, 2026):

@kevinend51 I just noticed your mariadb version is set to 12.1.2 while the examples suggest mariadb:10 did you test if it works with mariadb:10?

Hi, I've retest with cypht 2.6.0 + mariadb 10. This issue still occurs. First I add an account, saved and logout. After login again, I cannot find the account I added before.

<!-- gh-comment-id:3772102059 --> @kevinend51 commented on GitHub (Jan 20, 2026): > [@kevinend51](https://github.com/kevinend51) I just noticed your mariadb version is set to 12.1.2 while the examples suggest mariadb:10 did you test if it works with mariadb:10? Hi, I've retest with cypht 2.6.0 + mariadb 10. This issue still occurs. First I add an account, saved and logout. After login again, I cannot find the account I added before.
Author
Owner

@jflaplante commented on GitHub (Jan 31, 2026):

I have the same issue with a first time install.

First login works, I created 5 profiles, all of them worked. Logged out and logged back in, everything was gone and 'so alone' was displayed.

services:
cypht:
depends_on:
db:
condition: service_healthy
environment:
- AUTH_USERNAME=cy_admin
- AUTH_PASSWORD=xxxxx
- DB_CONNECTION_TYPE=host
- DB_DRIVER=mysql
- DB_HOST=db
- DB_NAME=cypht
- DB_USER=cypht
- DB_PASS=xxxxx
- SESSION_TYPE=DB
- USER_CONFIG_TYPE=DB
image: cypht/cypht:latest
ports:
- '38080:80'
restart: unless-stopped
volumes:
- /mnt/Data_01/Applications/cypht/users
- /mnt/Data_01/Applications/cypht/attachements
db:
environment:
- MYSQL_ROOT_PASSWORD=xxxxx
- MYSQL_DATABASE=cypht
- MYSQL_USER=cypht
- MYSQL_PASSWORD=xxxxx
healthcheck:
interval: 10s
retries: 5
test:
- CMD
- mysqladmin
- ping
- '-h'
- localhost
- '-ucypht'
- '-pcypht_password'
timeout: 5s
image: mariadb:10
restart: unless-stopped
volumes:
- /mnt/Data_01/Applications/cypht/mysql
version: '3.8'

I also tried with the USER_CONFIG_TYPE set to file, created a user with the php script and then successfully logged in. I created a few profiles that worked logged out and back in and everything was gone again.

<!-- gh-comment-id:3829318693 --> @jflaplante commented on GitHub (Jan 31, 2026): I have the same issue with a first time install. First login works, I created 5 profiles, all of them worked. Logged out and logged back in, everything was gone and 'so alone' was displayed. services: cypht: depends_on: db: condition: service_healthy environment: - AUTH_USERNAME=cy_admin - AUTH_PASSWORD=xxxxx - DB_CONNECTION_TYPE=host - DB_DRIVER=mysql - DB_HOST=db - DB_NAME=cypht - DB_USER=cypht - DB_PASS=xxxxx - SESSION_TYPE=DB - USER_CONFIG_TYPE=DB image: cypht/cypht:latest ports: - '38080:80' restart: unless-stopped volumes: - /mnt/Data_01/Applications/cypht/users - /mnt/Data_01/Applications/cypht/attachements db: environment: - MYSQL_ROOT_PASSWORD=xxxxx - MYSQL_DATABASE=cypht - MYSQL_USER=cypht - MYSQL_PASSWORD=xxxxx healthcheck: interval: 10s retries: 5 test: - CMD - mysqladmin - ping - '-h' - localhost - '-ucypht' - '-pcypht_password' timeout: 5s image: mariadb:10 restart: unless-stopped volumes: - /mnt/Data_01/Applications/cypht/mysql version: '3.8' I also tried with the USER_CONFIG_TYPE set to file, created a user with the php script and then successfully logged in. I created a few profiles that worked logged out and back in and everything was gone again.
Author
Owner

@IrAlfred commented on GitHub (Jan 31, 2026):

I also tried with the USER_CONFIG_TYPE set to file, created a user with the php script and then successfully logged in. I created a few profiles that worked logged out and back in and everything was gone again.

Did you save the settings before you log out ?

<!-- gh-comment-id:3829341955 --> @IrAlfred commented on GitHub (Jan 31, 2026): > I also tried with the USER_CONFIG_TYPE set to file, created a user with the php script and then successfully logged in. I created a few profiles that worked logged out and back in and everything was gone again. Did you save the settings before you log out ?
Author
Owner

@jflaplante commented on GitHub (Jan 31, 2026):

I also tried with the USER_CONFIG_TYPE set to file, created a user with the php script and then successfully logged in. I created a few profiles that worked logged out and back in and everything was gone again.

Did you save the settings before you log out ?

Pardon my ignorance, the answer 'was' no.... I tried again and now I've found the 'save' button. This is very counter intuitive compared to every other software I've used so I didn't even thought about doing that. Once I hit 'finish' and mail starts coming in, I assume that was sufficient.

I don't see a use case where I would want a profile i just created to disappear but I should have been more attentive to the notifications, as this is well displayed, at least in 2.6.0 When I initially wrote here, I was using the 'latest' tag which pointed to the 2.5.x train and I didn't notice the notifications. They were probably there, I just didn't see them.

So sorry for disturbing you...

<!-- gh-comment-id:3829491743 --> @jflaplante commented on GitHub (Jan 31, 2026): > > I also tried with the USER_CONFIG_TYPE set to file, created a user with the php script and then successfully logged in. I created a few profiles that worked logged out and back in and everything was gone again. > > Did you save the settings before you log out ? Pardon my ignorance, the answer 'was' no.... I tried again and now I've found the 'save' button. This is very counter intuitive compared to every other software I've used so I didn't even thought about doing that. Once I hit 'finish' and mail starts coming in, I assume that was sufficient. I don't see a use case where I would want a profile i just created to disappear but I should have been more attentive to the notifications, as this is well displayed, at least in 2.6.0 When I initially wrote here, I was using the 'latest' tag which pointed to the 2.5.x train and I didn't notice the notifications. They were probably there, I just didn't see them. So sorry for disturbing you...
Author
Owner

@IrAlfred commented on GitHub (Feb 3, 2026):

@jflaplante Thank you for your feedback.

<!-- gh-comment-id:3838997700 --> @IrAlfred commented on GitHub (Feb 3, 2026): @jflaplante Thank you for your feedback.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#715
No description provided.