mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 09:49:16 +02:00
#441 SMS sending
This commit is contained in:
parent
d87931d1f4
commit
9078e22a51
1 changed files with 3 additions and 0 deletions
|
@ -1720,6 +1720,9 @@ function sendSmsTestMessage(string $providerId, ?string $apiKey, ?string $apiTok
|
||||||
* @return string|null phone number if found
|
* @return string|null phone number if found
|
||||||
*/
|
*/
|
||||||
function getSmsPhoneNumber(array $attributes): ?string {
|
function getSmsPhoneNumber(array $attributes): ?string {
|
||||||
|
if (empty($_SESSION['cfgMain']->smsProvider)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
$phoneAttributes = array_change_key_case($_SESSION['cfgMain']->getSmsAttributes());
|
$phoneAttributes = array_change_key_case($_SESSION['cfgMain']->getSmsAttributes());
|
||||||
$attributes = array_change_key_case($attributes);
|
$attributes = array_change_key_case($attributes);
|
||||||
foreach ($phoneAttributes as $phoneAttribute) {
|
foreach ($phoneAttributes as $phoneAttribute) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue