KeyPressed(e))">
- @if (PageState.Site.Settings.ContainsKey("OpenIdConnectOptions:Provider") && !string.IsNullOrEmpty(PageState.Site.Settings["OpenIdConnectOptions:Provider"]))
- {
-
-
- }
+ @if (_allowexternallogin)
+ {
+
+
+ }
+ @if (_allowsitelogin)
+ {
@@ -44,7 +46,8 @@
-
+
+ }
}
@@ -66,6 +69,8 @@
@code {
+ private bool _allowsitelogin = true;
+ private bool _allowexternallogin = false;
private ElementReference login;
private bool validated = false;
private bool twofactor = false;
@@ -90,6 +95,16 @@
{
_togglepassword = Localizer["ShowPassword"];
+ if (PageState.Site.Settings.ContainsKey("AllowSiteLogin") && !string.IsNullOrEmpty(PageState.Site.Settings["AllowSiteLogin"]))
+ {
+ _allowsitelogin = bool.Parse(PageState.Site.Settings["AllowSiteLogin"]);
+ }
+
+ if (PageState.Site.Settings.ContainsKey("OpenIdConnectOptions:Provider") && !string.IsNullOrEmpty(PageState.Site.Settings["OpenIdConnectOptions:Provider"]))
+ {
+ _allowexternallogin = true;
+ }
+
if (PageState.QueryString.ContainsKey("returnurl"))
{
_returnUrl = PageState.QueryString["returnurl"];
diff --git a/Oqtane.Client/Modules/Admin/Users/Index.razor b/Oqtane.Client/Modules/Admin/Users/Index.razor
index dac02418..d09866d6 100644
--- a/Oqtane.Client/Modules/Admin/Users/Index.razor
+++ b/Oqtane.Client/Modules/Admin/Users/Index.razor
@@ -56,7 +56,7 @@ else
-
+
-
+
-
+
-
+
-
+
-
+