Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Login integration NOOB

rocosorocoso New
edited September 2007 in Vanilla 1.0 Help
Hi I have been searching and reading this forum before asking this question. I know its asked alot, i just cant figure it out. My main site is is using a custom login with no MD5. My data base tables are matching. Users are able to login to vanilla forum. Is there a easy way to make the People.ClassAuthenticator.php match the username and password so the auto login will just work :)? I have tryed everything and have read every post here :) Thank You I

Comments

  • Options
    edited September 2007
    Hi, rather than hacking the Vanilla authenticator, I suggest the coding of your own authenticator: just copy
    library/People/People.Class.Authenticator.php
    Maybe you'll just have to tweak the lines under
    // Retrieve matching username/password values
    Then edit the conf/settings.php file and adding the following lines:

    // My Authenticator
    $Configuration['AUTHENTICATION_MODULE'] = 'People/People.Class.MyAuthenticator.php';
    Note: sometimes the docs are useful too !
  • Options
    Thanks for the response. I have tryed getting the People.Class.Authenticator.php to work. My site works with sessions weird i have both configured to share the same session.
  • Options
    Max_BMax_B New
    edited September 2007
    I'm not sure, reading your post, if you want to share the same session, or have it distinct.
    Sharing is the default, under the name PHPSESSID. If your own site authentication use a specific session name (recommended, IMO, to avoid multiple software on the same host overwriting each others common variables such as "User"), just set the same name on the Vanilla session, by adding in your authenticator module a session_name()call:if (!session_id()) { session_name($this->Context->Configuration['YourSessionConfigVariable']); session_start(); }
    BTW: I suggested to Mark, one year ago to add a session NAME to Vanilla. Should we add it to bug tracker?
  • Options
    edited September 2007
    never mind, (I posted on the wrong forum... http://lussumo.com/bugs/discussion/21/add-a-sessionname-/#Item_2)
  • Options
    I got it working using this post http://lussumo.com/community/?CommentID=54642 :) just cant figure out that people authenticator.. thanks
This discussion has been closed.