mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #1869] 💬 [Question] How to configure Captcha, Two Factor and disable debug button #731
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#731
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PeopleInside on GitHub (Feb 17, 2026).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1869
Hi, I hope the day is going well.
I open this Question discussion to asking:
In the .env file I can find two configuration string
but I cannot find documentation or useful text in the readme file about with Recaptcha version is supported: invisibile, check box and version 2 or 3 is supported.
Also if the site and the private key must be inserted between "" or not and how to activate.
I tried to put site key and private key and save but no cappcha is showed on login.
Will be useful a guide or know here what to do to activate.
In the .env file there is two rows but what to do?
The two factor will be activated for every email address or can be choose with address should have the two factor active? I expect to find a web interface that let me manage two factor but is not.
How it works and how to setup?
I dont find any documentation about this.
https://github.com/cypht-org/cypht/blob/master/modules/2fa/README.md
https://www.cypht.org/developers-documentation/
Thank you
@PeopleInside commented on GitHub (Feb 17, 2026):
For the Re CAPTCHA I was able to activate but with issues.
For activate the Re Captcha I have to insert Re Captcha V2 with the check box Site Key and Key into the relative line in .env file and also add recaptcha to the following line:
CYPHT_MODULES="core,contacts,local_contacts,ldap_contacts,gmail_contacts,feeds,jmap,imap,smtp,account,idle_timer,desktop_notifications,calendar,themes,nux,developer,profiles,imap_folders,sievefilters,tags,history"So after will be
CYPHT_MODULES="core,contacts,local_contacts,ldap_contacts,gmail_contacts,feeds,jmap,imap,smtp,account,idle_timer,desktop_notifications,calendar,themes,nux,developer,profiles,imap_folders,sievefilters,tags,history,recaptcha"But the CAPTCHA is showed in a wrong place at the page footer instead of under the login form:
It works but who dont know is there will be unable to login.
The position should be fixed this seems to be a bug.
Should I open a separate bug report?
Also some documentation should be added about how to enable it.
@PeopleInside commented on GitHub (Feb 17, 2026):
For activate the two factor I need also add 2fa to the following line:
CYPHT_MODULES="core,contacts,local_contacts,ldap_contacts,gmail_contacts,feeds,jmap,imap,smtp,account,idle_timer,desktop_notifications,calendar,themes,nux,developer,profiles,imap_folders,sievefilters,tags,history"that will be
CYPHT_MODULES="core,contacts,local_contacts,ldap_contacts,gmail_contacts,feeds,jmap,imap,smtp,account,idle_timer,desktop_notifications,calendar,themes,nux,developer,profiles,imap_folders,sievefilters,tags,history,2fa"Then log in with email and going under settings, two factor.
Here I have the issue cannot generate 2 factor QR.
So need go on .env file and on the line
APP_2FA_SECRET=I need insert a randoom string
APP_2FA_SECRET="randoom_string"Now it works.
A documentation for this will be not bad.
Now issues remain the bug with Captcha position and how to remove debug on bottom right as showed also in the gif above
@IrAlfred commented on GitHub (Feb 17, 2026):
Great, to remove the debug button you need to run the production version. To generate this use the command
@PeopleInside commented on GitHub (Feb 17, 2026):
Thank you, I run it but still have debug
Output of the command was:
@IrAlfred commented on GitHub (Feb 17, 2026):
great, next step is to
copymove the full Cypht directory outside of the document root, and symlink it to your public_html folder using this command@IrAlfred commented on GitHub (Feb 17, 2026):
The previous command
php ./scripts/config_gen.phpgenerated a site/ folder on the root of Cypht directory. Inside, we have the production version@PeopleInside commented on GitHub (Feb 17, 2026):
Thank you!
I need some AI help to elaborate your reply then I was able to do but a fix is necessary under /site/index.php where the line
define('APP_PATH', 'my/old/cyphtpath');need to be replaced by
define('APP_PATH', __DIR__ . '/../');Without this I get error 500 after following your instructions.
Now debug has been removed and the login page works with the captcha in the wrong position :D the recaptcha need a fix or cypht need a fix the position of the recaptcha :)
Thank you!
@IrAlfred commented on GitHub (Feb 17, 2026):
@PeopleInside
We will fix the captcha position issue. Thank you again for choosing Cypht Webmail.
Your setup helped us discover a few gaps in the documentation. We will work on these as well.
Please feel free to submit any issues you find. Enjoy Cypht Webmail!
@PeopleInside commented on GitHub (Feb 17, 2026):
Thank you. I'm closing the question.
If you need track by yourself the Captcha issue.