Page MenuHomePhorge

D5811.1775203836.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D5811.1775203836.diff

diff --git a/src/app/Console/Commands/Status/Health.php b/src/app/Console/Commands/Status/Health.php
--- a/src/app/Console/Commands/Status/Health.php
+++ b/src/app/Console/Commands/Status/Health.php
@@ -95,6 +95,12 @@
{
try {
IMAP::healthcheck();
+
+ $user = User::where(['email' => \config('services.imap.admin_login')])->first();
+ if (!$user->validatePassword(\config('services.imap.admin_password'))) {
+ throw new \Exception("Failed to validate admin login.");
+ }
+
return true;
} catch (\Exception $exception) {
$this->line($exception);
@@ -110,6 +116,12 @@
null,
["to" => [$this->option('user')]]
);
+
+ $user = User::where(['email' => \config('mail.mailers.smtp.username')])->first();
+ if (!$user->validatePassword(\config('mail.mailers.smtp.password'))) {
+ throw new \Exception("Failed to validate admin login.");
+ }
+
return true;
} catch (\Exception $exception) {
$this->line($exception);

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 8:10 AM (14 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823156
Default Alt Text
D5811.1775203836.diff (1 KB)

Event Timeline