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

How to externally authenticate an Xenforo User for Bridge

Discussion in 'XenForo Development Discussions' started by Travis959, May 15, 2014.

  1. Travis959

    Travis959 Member

    I'm trying to create a bridge between Xenforo and another application I want to use, but I am stuck on how Xenforo stores the user credentials.

    Using a generic forum bridge template to start from, I've gotten most of it working, except the authentication part. I'm not sure where to go from here to fix this code:

    public function get_user_password($intUserID$arrGroups){
    $query2 $this->db->query("SELECT user_id, data, remember_key FROM ".$this->prefix."user_authenticate WHERE user_id='".$this->db->escape($intUserID)."'");
    $result2 $this->db->fetch_row($query2);
    $password2 $query2['data'];
    public function 
    check_password($password2$hash$strSalt ''$boolUseHash){
            if ((
    sha1(sha1($password2).$strSalt)) == $hash){

Share This Page