update mail provider

This commit is contained in:
pbao9
2026-05-18 16:04:12 +07:00
parent b63fbe8be0
commit bb27ed0305
+2 -2
View File
@@ -2,7 +2,7 @@
namespace App\Providers;
use App\Http\Facade\SignRSA;
use App\Http\Services\SignRSA;
use App\Models\Setting;
use App\Support\Cache\CacheKey;
use Illuminate\Support\Facades\App;
@@ -56,7 +56,7 @@ class MailConfigServiceProvider extends ServiceProvider
],
'encryption' => $mail->encryption === 0 ? 'tls' : $mail->encryption,
'username' => $mail->user ?? '',
'password' => isset($mail->password) ? SignRSA::DecryptFunc($mail->password) : '',
'password' => isset($mail->password) ? (new SignRSA())->DecryptFunc($mail->password) : '',
];
});