Fixed missing permission for activation.php in httpd.conf

This commit is contained in:
Sylvain Berfini 2020-07-30 16:31:56 +02:00
parent b856d7b276
commit a7f20f59b9
3 changed files with 15 additions and 4 deletions

View file

@ -19,11 +19,11 @@ define("EMAIL_SITE", "https://linphone.org");
/*
* The link to open when click on activation
* It can have a %link%, %username%, %domain%, and %algo% parameter
* It must have a %key% and %username% parameters and eventually a %domain% and/or %algo%
*
* Default value: www.linphone.org
* Default value: www.linphone.org/flexisip-account-manager/activation.php?username=%username%&confirmation_key=%key%&domain=%domain%&algorithm=%algo%
*/
define("EMAIL_ACTIVATION_LINK", "www.linphone.org");
define("EMAIL_ACTIVATION_LINK", "www.linphone.org/flexisip-account-manager/activation.php?username=%username%&confirmation_key=%key%&domain=%domain%&algorithm=%algo%");
/*
* The FROM address to set in the email header.
@ -46,11 +46,13 @@ define("EMAIL_ACTIVATION_SUBJECT", "Start your sip.linphone.org service");
/*
* The body (as text) of the activation account email.
* It must have a %link% parameter somewhere with the link to click to activate the account
*/
define("EMAIL_ACTIVATION_BODY", "Hello,\nActivation pending for using your Linphone account.\nPlease use the link bellow to activate your account :\n\n%link%\n\nRegards,\nThe Linphone team.\n");
/*
* The body (as html) of the activation account email.
* It must have a %link% parameter somewhere with the link to click to activate the account
*/
define("EMAIL_ACTIVATION_BODY_HTML", '<html><head><title>Start your sip.linphone.org service</title></head><body><p>Hello,</p><p>Activation pending for using your Linphone account.<br />Please use the link bellow to activate your account :</p><p><a href="%link%">%link%</a></p><p>&nbsp;</p><p>Regards,<br />The Linphone team.</p></body></html>');
@ -61,11 +63,13 @@ define("EMAIL_RECOVERY_SUBJECT", "Recover your sip.linphone.org account");
/*
* The body (as text) of the account recovery email.
* It must have a %key% parameter that will be replaced with the recovery code
*/
define("EMAIL_RECOVERY_BODY", "Hello,\nHere is your recovery code: %key%\n\nRegards,\nThe Linphone team.\n");
/*
* The body (as html) of the account recovery email.
* It must have a %key% parameter that will be replaced with the recovery code
*/
define("EMAIL_RECOVERY_BODY_HTML", '<html><head><title>Recover your sip.linphone.org account</title></head><body><p>Hello,</p><p>Here is your recovery code: %key%</p><p>Regards,<br />The Linphone team.</p></body></html>');

View file

@ -8,7 +8,7 @@
#%define _datadir %{_datarootdir}
#%define _docdir %{_datadir}/doc
%define build_number 23
%define build_number 24
%define var_dir /var/opt/belledonne-communications
%define opt_dir /opt/belledonne-communications/share/flexisip-account-manager
%define env_file "$RPM_BUILD_ROOT/etc/flexisip-account-manager/flexiapi.env"

View file

@ -7,6 +7,13 @@ Alias /flexisip-account-manager /opt/belledonne-communications/share/flexisip-ac
Require all denied
SetEnv FLEXISIP_ACCOUNT_MANAGER_PATH_TO_CONFIG /etc/flexisip-account-manager
<Files activation.php>
<RequireAll>
Require all granted
Require not env blockAccess
</RequireAll>
</Files>
<Files xmlrpc.php>
<RequireAll>
Require all granted