Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Clean up user login/registration hooks a bit.#5536

Merged
DFurnes merged 1 commit intoDoSomethingArchive:devfrom
DFurnes:user-campaign-signup-hooks
Oct 19, 2015
Merged

Clean up user login/registration hooks a bit.#5536
DFurnes merged 1 commit intoDoSomethingArchive:devfrom
DFurnes:user-campaign-signup-hooks

Conversation

@DFurnes
Copy link
Contributor

@DFurnes DFurnes commented Oct 19, 2015

Changes

I was thinking about this after making changes in #5478. Login and registration forms both shared the dosomething_user_login_submit hook, which was confusing at first glance. This shuffles things around to have a shared authentication submit handler, and a unique login handler for the login form.

Side effect: we can now cleanly have login-form specific actions, such as a Authentication - Login event that only fires when the user specifically uses the login form. Sweet. 🍬

How should this be tested?

I tested to see that expected behavior still works (dpm every step of the way~), but would appreciate an extra pair of 👀 just to make sure I didn't do something stupid. 😬

For review: @angaither

Login AND registration both previously used the
`dosomething_user_login_submit` hook, which was confusing at first
glance. This shuffles things around to have a shared `authentication`
submit handler, and a unique `login` handler for the login form.
@angaither
Copy link
Contributor

brilliant 👍

DFurnes added a commit that referenced this pull request Oct 19, 2015
Clean up user login/registration hooks a bit.
@DFurnes DFurnes merged commit ecfc90e into DoSomethingArchive:dev Oct 19, 2015
@DFurnes DFurnes deleted the user-campaign-signup-hooks branch May 23, 2016 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants