123456789101112131415161718192021222324252627282930313233 |
- <?php
- if (!function_exists('get_account_verification_type')) {
-
- function get_account_verification_type(): array
- {
- $types = [];
-
- $sysMailConfig = get_sys_config('', 'mail');
- $configured = true;
- foreach ($sysMailConfig as $item) {
- if (!$item) {
- $configured = false;
- }
- }
- if ($configured) {
- $types[] = 'email';
- }
-
- $sms = \ba\module\Server::getIni(path_transform(root_path() . 'modules/sms/'));
- if ($sms && $sms['state'] == 1) {
- $types[] = 'mobile';
- }
- return $types;
- }
- }
|