diff --git a/backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs b/backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs index 421ae8782..c345efd00 100644 --- a/backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs +++ b/backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs @@ -218,7 +218,6 @@ public sealed class AccountController : IdentityServerController var vm = new LoginVM { ExternalProviders = externalProviders, - IsLogin = HttpContext.Request.Query["signup"] != "true", HasPasswordAuth = allowPasswordAuth, HasCustomAuth = allowCustomDomains, RequestType = requestType, diff --git a/backend/src/Squidex/Areas/IdentityServer/Controllers/Account/LoginVM.cs b/backend/src/Squidex/Areas/IdentityServer/Controllers/Account/LoginVM.cs index 35aa86928..516f8b62d 100644 --- a/backend/src/Squidex/Areas/IdentityServer/Controllers/Account/LoginVM.cs +++ b/backend/src/Squidex/Areas/IdentityServer/Controllers/Account/LoginVM.cs @@ -19,8 +19,6 @@ public class LoginVM public string? Password { get; set; } - public bool IsLogin { get; set; } - public bool HasPasswordAuth { get; set; } public bool HasCustomAuth { get; set; } diff --git a/backend/src/Squidex/Areas/IdentityServer/Views/Account/Login.cshtml b/backend/src/Squidex/Areas/IdentityServer/Views/Account/Login.cshtml index 07a790bf4..833e6a90a 100644 --- a/backend/src/Squidex/Areas/IdentityServer/Views/Account/Login.cshtml +++ b/backend/src/Squidex/Areas/IdentityServer/Views/Account/Login.cshtml @@ -2,36 +2,10 @@ @model Squidex.Areas.IdentityServer.Controllers.Account.LoginVM @{ - var action = Model.IsLogin ? T.Get("common.login") : T.Get("common.signup"); - - ViewBag.Title = action; + ViewBag.Title = T.Get("common.login"); }
-
-
-
- @if (Model.IsLogin) - { - @T.Get("common.login") - } - else - { - @T.Get("common.login") - } - - @if (!Model.IsLogin) - { - @T.Get("common.signup") - } - else - { - @T.Get("common.signup") - } -
-
-
-
@if (Model.HasExternalLogin) { @@ -44,7 +18,7 @@
} @@ -58,33 +32,26 @@ @if (Model.HasPasswordAuth) {
- @if (Model.IsLogin) - { - @if (Model.RequestType == RequestType.Login) - { -
- } - -
- @Html.AntiForgeryToken() - -
-
- -
- -
-
- -
- - -
- } - else + @if (Model.RequestType == RequestType.Login) { - +
} + +
+ @Html.AntiForgeryToken() + +
+
+ +
+ +
+
+ +
+ + +
} @@ -92,7 +59,7 @@
@T.Get("users.login.separator")
- @if (Model.HasCustomAuth && Model.IsLogin) + @if (Model.HasCustomAuth) {
@if (Model.RequestType == RequestType.LoginCustom) @@ -112,30 +79,9 @@
- +
} - - @if (Model.IsLogin) - { - - } - else - { - - } \ No newline at end of file diff --git a/frontend/src/app/theme/_static.scss b/frontend/src/app/theme/_static.scss index a1cad285b..0af1abf1a 100644 --- a/frontend/src/app/theme/_static.scss +++ b/frontend/src/app/theme/_static.scss @@ -211,6 +211,8 @@ a { .login-container { margin-left: auto; margin-right: auto; + margin-top: 2rem; + margin-bottom: 2rem; max-width: 20rem; }