Jump to content

Login Handler External data Base


Recommended Posts

Hi I'm trying to create an additional way for people to login using the "External Data" base under "Login Handlers"  I filled out everything correct and matched it to the data base but now I am getting this error message.

IPS\Db\Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 (1064)

What I don't understand is if the problem is in IPB4 or something in the Actually MYSQL data base that i'm trying to reference.  Any insight?

I feel like I'm really close and this shouldn't be that hard.

Link to comment
Share on other sites

On 03.04.2016 at 8:40 AM, Jason Brown_41238 said:

IPS\Db\Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 (1064)

This error was resolved here

2 hours ago, Jason Brown_41238 said:

I got most of it to work except for the pass word is not recognized.

See Password Encryption Type (The format that the password is stored in. If using an encryption type not specified, you will need to modify the _External::checkPassword method in the /system/Login/External/External.php file.)

@bfarber I don't see the folder External and can't find method _External::checkPassword

I found the above setting in system/Login/External.php

	/**
	 * Encrypt Password
	 *
	 * @param	string	$password	The password
	 * @return	bool
	 */
	protected function encryptedPassword( $password )
	{
		switch ( $this->settings['db_encryption'] )
		{
			case 'md5':
				return md5( $password );
				
			case 'sha1':
				return sha1( $password );
			
			default:
				return $password;
		}
	}

 

Link to comment
Share on other sites

On 4/10/2016 at 9:13 AM, Jason Brown_41238 said:

Hi @newbie LAC Here is a screen shot.  I still can't seem to find it.  It dead ends at Login, but I do not see an "external.php" folder.  thanks in advance for your help.  I know I'm really close.

 

 

where to edit external. php.png

 

How are passwords stored in your front end system you are connecting to? Are they plain text, MD5 hashed, sha1 hashed, or stored in some other manner?

Link to comment
Share on other sites

@bfarber it is a Wordpress site and is stored in MD5 which I have set as the password type in the "password encryption" box.  So I would imagine I do not have to edit the PHP file if I ever found it lol...  After some more reading I am understanding that the password is hashed in MD5 with Salt?  ... I feel like I'm going int to never never land now...

Link to comment
Share on other sites

@bfarber is correct - WordPress used to do simple md5() hashing on the password, however have since migrated to a much more secure method. For reference, you can take a look at the file at /system/Login/Convert.php - the wordpress() method here. It accommodates for both.

But yes, as an alternative there is a pre-built WordPress SSO plugin available in the marketplace as noted.

Link to comment
Share on other sites

@Ryan Ashbrook thanks Ryan.  I feel like I keep buying stuff and it doesn't work how it's being sold.  When I purchased IPB4 it seems the login handler would be simple to configure but it's not, so no problem.   I bought the commerce link as it's sold that it will handle your membership registrations and payments so I don't have to rely on my Wordpress registration, and it does not function the way Invision Powers check out pages work.  It takes a person to click on the item, add the item to the cart, confirm the cart, check out of the cart..  It's like 4-5 steps before they can even pay.  It's not smooth like when I purchased my IPB4.  Now theres this Wordpress plugin that I'm not so confident in buying knowing none of these come with a refund and there is little support on how it all works.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...