Skip to content

Commit 8f83eb9

Browse files
author
Hystepik
committed
Fix #406 API Key save
1 parent c7f8308 commit 8f83eb9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

admin/setup_register_security.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@
147147
if (GETPOSTISSET("SELLYOURSAAS_BLOCK_DISPOSABLE_EMAIL_ENABLED")) {
148148
dolibarr_set_const($db, "SELLYOURSAAS_BLOCK_DISPOSABLE_EMAIL_ENABLED", GETPOST("SELLYOURSAAS_BLOCK_DISPOSABLE_EMAIL_ENABLED", 'alpha'), 'chaine', 0, '', $conf->entity);
149149
}
150-
150+
if (getDolGlobalInt("SELLYOURSAAS_BLOCK_DISPOSABLE_EMAIL_ENABLED")) {
151+
dolibarr_set_const($db, "SELLYOURSAAS_BLOCK_DISPOSABLE_EMAIL_API_KEY", GETPOST("SELLYOURSAAS_BLOCK_DISPOSABLE_EMAIL_API_KEY", 'alpha'), 'chaine', 0, '', $conf->entity);
152+
}
151153

152154
// Google recaptcha
153155
if (GETPOSTISSET("SELLYOURSAAS_GOOGLE_RECAPTCHA_ON")) {

0 commit comments

Comments
 (0)