-
Notifications
You must be signed in to change notification settings - Fork 15
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
salt method missing in card-mod-account 0.16.0 #1077
Comments
Thanks for the report! I just pushed out Decko 0.17.0, which I believe should fix this problem. |
Hey @ethn, thank you very much! Unfortunately, with the latest 0.17.0 installed and
|
I also have added quite a bit of content to my installation. Would I need to involve the event to finalize registering somehow manually? |
Ok, I managed to render the login page (although without stylesheets) and then could reset my password with these safeguards:
Now I can logout and login again with my password, without having to do a password reset to be logged in. The signin page source shows 3 of these:
But the |
It's normal that the users table is empty. That table is legacy and will be deleted at Decko 1.0. All the user handling was long ago moved into cards. The problem is that you are somehow authenticated with a card that is not an account holder. Can you figure out what kind of card it is? For example, you could add debugging like:
My guess is that this card would be "Decko Bot" (with the codename If we can resolve the authentication issue, Sorry for the nuisance. |
Come to think of it, this is probably related to the "salt" thing. Somehow the account methods are not being reached. If you find a card that is supposed to be a user card that doesn't have the type "user", you can consider changing its type by going to
... where If the problem is the DeckoBot card, we may have to correct the data in the database directly. |
Thanks for you help, I really appreciate it! Unregistered, index:
"Sign In"
Successful login:
When logged in, it doesn't seem to hit my Addendum: I just put it in |
Something different: I just got bitten by this: rubyworks/facets/issues/307, when I tried to add an image to a card using the menu option in the visual editor. If I rename the method call in |
Ok, this is strange. The CSS error seems to be gone since I fixed the ostruct thing. 🍀 |
Can you now run |
Yep, but that also worked previously, it just had no effect on the problems. |
Ah, I think I misread an early comment. I'm still a bit curious about that initial authentication error. Do you still have the It's probably fine that you're not seeing the debugging after signed in if at that point you have an admin user and are probably bypassing the one-off permission checks with But I'm now noticing that the permissions.rb code snippet you included doesn't look like 0.17 code. It should look like https://github.com/decko-commons/decko/blob/main/mod/permissions/set/all/permissions.rb(see It's also surprising to me that this facets gem would cause problems for decko because it's not a gem that decko uses. Are you adding that (or something that depends on it) to your Gemfile? |
Got it! It's the JS interpreter ducktape (used via execjs, which itself is required by coffee-script coming from activesupport), that imports I just removed card-mod-permission and reinstalled it via Also my local 0.17.0 is exactly the same as the I'm now using the unpatched permissions.rb from v0.17.0 and I also see the CSS when not logged in. Everything else works fine, too. So it seems this was all related to the fact, that Ruby 3.3.2 triggers the Well, it could be, that originally the admin account wasn't set up completely, because the registration didn't go through. But this seems to have been fixed with your account event change from 0.17.0. Maybe the constellation of the stars was also involved somehow. 😁 |
I have a problem with a fresh Decko 0.16.0 installation.
Upon setting up the very first account, I get the following error when submitting the signup form:
I found that the error is raised in
set/right/password.rb
line 21 from the Decko dependency gem card-mod-account (0.16.0). If I temporarily assign an empty string to salt, it works. But the password wouldn't be salted then?The text was updated successfully, but these errors were encountered: