roleassign_form_alter()
replaces the roles element.
In the password_policy module, _password_policy_get_edited_user_roles()
relies on the roles element to determine which roles the edited user will get, upon submitting the form.
The "authenticated" role is never part of the options of the roles element, as it is rebuilt by roleassign, so any policy that should apply to all authenticated users is never validated.
Wouldn't it make sense to always include the authenticated role as part of the assignable roles?
In core the checkbox is always checked, and disabled.
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.