Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Wordpress login button if it's the only one enabled #4066

Merged
merged 4 commits into from
Aug 6, 2020

Conversation

microweb10
Copy link
Member

References

Wordpress login was introduced in PR #3902 but a BUG was also introduced, the button will not appear if Wordpress login is the only one external authentication feature enabled.

Objectives

  • Fix the BUG and show the Wordpress login button if it's the only one enabled.

@microweb10 microweb10 added the Bug label Jul 25, 2020
@microweb10 microweb10 self-assigned this Jul 25, 2020
@microweb10 microweb10 added this to Reviewing in Consul Democracy via automation Jul 25, 2020
@javierm javierm added the 1.2 label Jul 27, 2020
javierm and others added 4 commits July 27, 2020 14:46
We were writing the same code twice, with the only difference being the
text "Sign up" in the sign_up action, and "Sign in" in the sign_in
action.

Note we're renaming the `omniauth.info_*` I18n keys so we don't need to
add new exceptions to the `ignore_unused` list, and so it's consistent
with all the other keys under the `omniauth` key.
Since we're using the exact same logic for all existing buttons, we can
just get the list of available ones and loop through them.
We were adding the same styles five times.
@javierm javierm self-assigned this Jul 27, 2020
@taitus taitus self-assigned this Aug 5, 2020
@taitus taitus self-requested a review August 5, 2020 14:52
Consul Democracy automation moved this from Reviewing to Testing Aug 5, 2020
@javierm
Copy link
Member

javierm commented Aug 6, 2020

Cool! Thanks! 😄

@javierm javierm merged commit 50372f4 into master Aug 6, 2020
Consul Democracy automation moved this from Testing to Release 1.2.0 Aug 6, 2020
@javierm javierm deleted the oauth_buttons branch August 6, 2020 11:54
@javierm javierm removed the 1.2 label Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants