Forum Replies Created
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
skoulixMember
Ok I found out how to do it.
I’m sending the code in case someone else wants to use it as well.
function notification_recipients( $adminEmails ) { $users = array_merge( get_users('role=administrator'), get_users('role = manager') ); $recipients = array(); foreach ( $users as $user ) { $user_email = $user->user_email; $recipients[] = $user_email; } return $recipients; } add_filter( 'user_meta_admin_email_recipient', 'notification_recipients' );
skoulixMemberHello,
this is a great addition and very much needed, well done!
However, the regular expression applies only for the registration form. These rules must also apply and to the reset password form.
e.g.
Right now we are able to force users during registration to choose a better password with regular expressions, but one can very easily bypass and choose another non-secure password via the reset password form. It doesn’t make sense.Can you please make possible the reset password form to also take account the regular expression that we have set to the password field?
That would be great.
Keep up the good work.
skoulixMemberAwesome!
Thanks
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)