Skip to content

Fix portal setting that handles Require a valid Profile for Login toggle - #7590

Open
idumlupinar wants to merge 1 commit into
dnnsoftware:developfrom
idumlupinar:bugfix-7586
Open

idumlupinar wants to merge 1 commit into
dnnsoftware:developfrom
idumlupinar:bugfix-7586

Conversation

@idumlupinar

Copy link
Copy Markdown
Contributor

Fixes #7586
Reported by @bennysu

Summary

In the Persona Bar, Settings → Security → Basic Login Settings → "Require a valid Profile for Login" cannot be turned off. You switch it off, click Save, and get a success message. When the page reloads, the toggle is back on, and sign-in still sends users with an incomplete profile to the "Please update your profile" form.

The cause is a mismatched settings key. The save endpoint writes the value to Security_RequireValidProfile, which is the registration setting. The screen and the sign-in check both read Security_RequireValidProfileAtLogin, and that key defaults to on.

There is a second effect: saving the Login settings also overwrites the "Require a valid profile" setting on the Registration settings screen. An admin who requires a valid profile at registration loses that setting the next time anyone saves the Login settings with this toggle off.

Testing

Go to Settings → Site Settings → Site Behavior → User Profiles, and mark at least one profile property as Required (for example Region).
Create a regular user and leave that property empty.
Go to Settings → Security → Basic Login Settings, switch Require a valid Profile for Login off, and click Save. A success message appears.
Reload the page.
Expected/Actual: the toggle is on.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "Require a valid Profile for Login" cannot be turned off — saved to the wrong settings key

1 participant