Make Alchemy's signup page work with Solidus' user controller#131
Make Alchemy's signup page work with Solidus' user controller#131mamhoff wants to merge 1 commit intoAlchemyCMS:mainfrom
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 | |||
| end | ||
| end | ||
|
|
||
| ::Spree::Admin::UsersController.prepend(Alchemy::Solidus::SpreeAdminUsersControllerPatch) |
There was a problem hiding this comment.
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.