1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Synchronise XenForo User/Pass with Custom Login User/Pass?

Discussion in 'XenForo Development Discussions' started by TruDan, Jan 11, 2015.

  1. TruDan

    TruDan Member

    Is it possible, via PHP to syncronise a password change in both directions?
    XenForo -> Custom Login,
    Custom Login -> XenForo

    So the username/password will always be the same for both?

    I would like to know if it is possible (without breaking XenForo) to override the user login system.

    Basically, we have a system for our game players to register / login, which runs standalone, and we would like to make it so they use the same account for both the forums, and in-game.

    I know the first solution would be to make the in-game use xenforo's authentication, however we have over 30,000 users signed up, and passwords are not decryptable, so we cannot transfer users without making them all reset their password. (which we would like to avoid)

    So is it possible to use a custom login handler, to check username/password combination, then force a login to xenforo for that username? (The accounts can be created XenForo side, so the internals would still be the same)
    Last edited: Jan 12, 2015
  2. attemis

    attemis Member

  3. James

    James Well-Known Member

    XenForo already has the ability to use custom password algorithms to check a password. You could develop a new password auth that is based on your game's password hashing algorithm. Then you just need to deal with the creation of the accounts or write an import script to import them.
    attemis likes this.
  4. attemis

    attemis Member

    That works? Sounds interesting :)
  5. James

    James Well-Known Member

    attemis likes this.

Share This Page