fix(email): complete mail settings and templates
This commit is contained in:
1 parent
4f8ab94fac
commit
4833053a5c
29 files changed
+716
-426
No files matched your search
@@ -78,6 +78,7 @@ final class ApplicationService {
|
||||
}
|
||||
$public_name = $type === 'enterprise' ? $this->truncate($company_name, 64) : __('个人认证', 'aksrt');
|
||||
|
||||
$is_new_application = !$existing;
|
||||
if ($existing) {
|
||||
$application = $existing;
|
||||
} else {
|
||||
@@ -110,9 +111,12 @@ final class ApplicationService {
|
||||
'attempt_ordinal' => $attempt + 1,
|
||||
]);
|
||||
}
|
||||
if (is_wp_error($application)) {
|
||||
return $application;
|
||||
}
|
||||
if (is_wp_error($application)) {
|
||||
return $application;
|
||||
}
|
||||
if ($is_new_application) {
|
||||
do_action('aksrt_user_auth_submitted', (int) $application['user_id'], $application);
|
||||
}
|
||||
|
||||
$provider = ProviderFactory::make((string) $application['provider']);
|
||||
$valid = $provider->validate_config();
|
||||
|
||||
Reference in new issue
Block a user