Re-introduce the option to conditionally login members after registration (#13659)

* Re-introduce the option to conditionally login members after registration

* Make absolutely sure the default is true for automatic member login after registration
This commit is contained in:
Kenn Jacobsen
2023-01-12 10:56:14 +01:00
committed by GitHub
parent 9d522ea9a0
commit f6113db0fc
4 changed files with 27 additions and 4 deletions

View File

@@ -18,6 +18,9 @@
// Set to true if you want the member editable properties shown.
// It will only displays properties marked as "Member can edit" on the "Info" tab of the Member Type.
.WithCustomProperties(false)
// By default the member will be logged in automatically after registration.
// Set this to false if the member should not be logged in automatically.
.WithAutomaticLogIn(true)
.Build();
var success = TempData["FormSuccess"] != null;
@@ -39,7 +42,8 @@ else
new {
MemberTypeAlias = registerModel.MemberTypeAlias,
UsernameIsEmail = registerModel.UsernameIsEmail,
RedirectUrl = registerModel.RedirectUrl
RedirectUrl = registerModel.RedirectUrl,
AutomaticLogIn = registerModel.AutomaticLogIn
}))
{
<h2>Create a new account.</h2>