-
Notifications
You must be signed in to change notification settings - Fork 30
Make Alchemy's signup page work with Solidus' user controller #131
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
base: main
Are you sure you want to change the base?
Conversation
5e24cd9 to
0bbbb64
Compare
|
I do not understand this comment. Can you elaborate? |
In the generated initializer, I found this comment:
Would both of these be ActiveRecord attributes? Do we also want to safelist |
0bbbb64 to
b7cbbaf
Compare
I am pretty sure that both are ActiveRecord attributes (the What concerns me more is the next paragraph:
🙈 I wasn't aware of this, but we can neglect this I guess. I never saw this in a real app and we can tackle this if this causes any actual issues. |
| @@ -0,0 +1,24 @@ | |||
| # /home/anselm/code/alchemy-solidus/app/patches/controllers/alchemy/solidus/spree_admin_users_controller_patch.rb | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove this
| end | ||
| end | ||
|
|
||
| ::Spree::Admin::UsersController.prepend(Alchemy::Solidus::SpreeAdminUsersControllerPatch) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably want to safe guard?
Solidus ships an admin users controller within the core backend distribution, while Alchemy does this within the auth extension `alchemy-devise`. So when using `alchemy-devise` with `solidus-backend`, Solidus` admin users controller takes over, and we need to make sure our non-users has the right abilites to create a first admin user, and that that admin user then has admin rights, too.
b7cbbaf to
7904616
Compare
|
@mamhoff rebased with latest |
Solidus ships an admin users controller within the core backend distribution, while Alchemy does this within the auth extension
alchemy-devise. So when usingalchemy-devisewithsolidus-backend, Solidus` admin users controller takes over, and we need to make sure our non-users has the right abilites to create a first admin user, and that that admin user then has admin rights, too.In a previous comment we were discussing whether to use
Devise.authentication_keys- however, that method also has:subdomainin its example, and I'm unsure exactly how it works. I'd rather explicitly set:login, which does the right thing in 99.99% of all cases, and is clearer.