mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
better smtp check
This commit is contained in:
parent
c9fdec55b5
commit
6aca7404c2
@ -99,13 +99,13 @@
|
||||
<h2>Settings</h2>
|
||||
|
||||
<h3>SMTP</h3>
|
||||
@if(Model.GlobalSettings.Mail.Smtp == null)
|
||||
@if(!Bit.Core.Utilities.CoreHelpers.SettingHasValue(Model.GlobalSettings.Mail?.Smtp?.Host))
|
||||
{
|
||||
<p class="text-muted">Not configured</p>
|
||||
<p class="text-muted">Not configured</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<dl class="row">
|
||||
<dl class="row">
|
||||
<dt class="col-sm-4 col-lg-3">Host</dt>
|
||||
<dd class="col-sm-8 col-lg-9">
|
||||
@(string.IsNullOrWhiteSpace(Model.GlobalSettings.Mail.Smtp.Host) ? "-" : Model.GlobalSettings.Mail.Smtp.Host)
|
||||
@ -124,7 +124,7 @@ else
|
||||
<dd class="col-sm-8 col-lg-9">
|
||||
@(string.IsNullOrWhiteSpace(Model.GlobalSettings.Mail.Smtp.Username) ? "-" : Model.GlobalSettings.Mail.Smtp.Username)
|
||||
</dd>
|
||||
</dl>
|
||||
</dl>
|
||||
}
|
||||
|
||||
<h3>Other</h3>
|
||||
|
Loading…
Reference in New Issue
Block a user