Skip to content

Commit 07e3017

Browse files
committed
#2210 remove unnecessary text
1 parent 60b30c1 commit 07e3017

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

Console/BExIS.Web.Shell/Views/Account/_ExternalLoginsList.cshtml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,33 @@
33
@using Microsoft.Owin.Security
44
@using BExIS.Utils.Config
55

6-
<h4>Use different service for log in.</h4>
7-
<hr />
8-
96
@{
107
var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes();
11-
if (!loginProviders.Any() && GeneralSettings.LdapConfigurations.All(l => l.Enabled == false))
12-
{
13-
<div>
14-
<p>
15-
There are no external authentication services configured. See <a href="http://go.microsoft.com/fwlink/?LinkId=403804">this article</a>
16-
for details on setting up this ASP.NET application to support logging in via external services.
17-
</p>
18-
</div>
19-
}
20-
else
8+
if (loginProviders.Any() || GeneralSettings.LdapConfigurations.Any(l => l.Enabled == true))
219
{
10+
<h4>Use different service for log in.</h4>
11+
<hr />
12+
2213
using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl }))
2314
{
24-
@Html.AntiForgeryToken()
25-
<div id="socialLoginList">
26-
<p>
27-
@foreach (var ldap in GeneralSettings.LdapConfigurations)
15+
@Html.AntiForgeryToken()
16+
<div id="socialLoginList">
17+
<p>
18+
@foreach (var ldap in GeneralSettings.LdapConfigurations)
2819
{
2920
if (ldap.Enabled)
3021
{
31-
@Html.ActionLink(ldap.Name, "Login", "Ldap", new { name = ldap.Name }, new { @class = "btn btn-default" })
22+
@Html.ActionLink(ldap.Name, "Login", "Ldap", new { name = ldap.Name }, new { @class = "btn btn-default" })
3223

3324
}
3425
}
3526

36-
@foreach (var p in loginProviders)
27+
@foreach (var p in loginProviders)
3728
{
38-
<button type="submit" class="btn btn-default" id="@p.AuthenticationType" name="provider" value="@p.AuthenticationType" title="Mit Ihrem @p.Caption-Konto anmelden">@p.AuthenticationType</button>
29+
<button type="submit" class="btn btn-default" id="@p.AuthenticationType" name="provider" value="@p.AuthenticationType" title="Mit Ihrem @p.Caption-Konto anmelden">@p.AuthenticationType</button>
3930
}
40-
</p>
41-
</div>
31+
</p>
32+
</div>
4233
}
4334
}
4435
}

0 commit comments

Comments
 (0)