Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117755616
D5811.1775203836.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D5811.1775203836.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5811: Validate the service accounts created in data:init
Attached
Detach File
Event Timeline