Xenforo support in Authme 5.0 ?
I remember, what older authme versions having xfsha256 encryption, but xenforo have separate tables: user table and password table Is it real to return back xenforo support? Its would be nice p.s. sorry for my english
The problem with xenforo is that it isn't open source, so we have difficulties to study his database structure.
I can give a clean xenforo forum with db
bump
FYI: Admin password in the dump is oIYPsCpn (as mentioned by @Xephi).
The code that we have for Xenforo (doesn't work!) has been pushed to the 137-xenforo-support branch (aed23cb). There are various code snippets with TODO #137 scattered all around the codebase that need to be tackled. In particular:
- [x] Make sure that the salt and the hash are always retrieved and stored together
- [ ] Test AuthMe with the XENFORO hash and make sure it works (register a player, unregister a player, change a player's password...)
- [x] Create a test for the Xenforo algorithm class. It already exists and a comment in the class explains how to create the test class (It's as simple as running a method to generate the entire class)
- [x] Make sure there are no more
TODO #137in the code. - [x] If you want, you can add to the README.md file that we support Xenforo
- [x] Suggestion: Rename XF.java to XENFORO.java, or even better: Xenforo.java
I recently refactored the encryption algorithm section of AuthMe, so if you have a question about the inner workings (such as he HashedPassword or PasswordSecurity class), please contact me. :)
Also, do you know, what XF use 2 separate tables? xf_user - user table xf_user_authenticate - password table
And yes, for now it's doesn't work at all. [Server thread/WARN]: [AuthMe] Unknown Hash Algorithm; defaulting to SHA256
Waiting for new builds to test them :dancer:
Thanks for the info. @DNx5 is working on adding Xenforo support. Right now it's not in AuthMe just yet, so it doesn't know the "XENFORO" hash algorithm for now. ^^
@Slaand, thanks a lot for all of your help (the information and the dump you have provided) and your patience!
@DNx5 How are you doing with xenforo? I recently generated the test class for Xenforo and I think the only problem was a null pointer exception from ConsoleLogger. That's just because of the test — I'll fix this (i.e. I'll do the test class) so it doesn't stop progress on this issue
I renamed XENFORO hash algorithm to XFBCRYPT because current version of xenforo is using Bcrypt but the old version is sha256/md5
That sounds nice! Thanks for all the recent commits. I'll fix the tests and assign this to you for merging to master? I don't know if there's anything else pending for Xenforo support
Tests fixed.
Ok, @Slaand can you try it? ;)
- Problem with player register, after /reg command server server snow me an error at console: [Craft Scheduler Thread - 1/WARN]: [AuthMe] Field 'email' doesn't have a default value So what's wrong? :D My cfg http://pastebin.com/xTuxfd4Z
- After password change at server, player can't log in anymore. At server/website same error: wrong password.
Also if you still need alot more info from this, you can take all my logins and passes from xenforo db, but admin account is broken for now, because of this passchange at server :D P.S. Sorry for my english
try to set encryption to xfbcrypt
probably related to #418 but I dont know why.
My encryption already is XFBCRYPT, you can see my config, comments above.
You can't login only after change your password right?
Yes, that's right. Later I'll do more tests with xenforo and authme, maybe we get more bugs :)
Is your previous password generated by AuthMe with xfbcrypt encryption?
Or by Xenforo?
By xenforo