Jump to content


Photo
- - - - -

Special Characters Problem


  • This topic is locked This topic is locked
1 reply to this topic

#1 GrizzlyA

GrizzlyA

    n00b

  • Banned
  • Pip
  • 1 posts
  • IPB Version:v3.4.x

Posted 31 January 2016 - 02:06 PM

So for some reason passwords with special characters (!, @, $, etc) do not work.
Any idea why IP.Board is doing this?

This is the script I wrote:

<?php
// Script Details
define( 'IPB_THIS_SCRIPT', 'public' );

// Include Headers
require_once( './initdata.php' );
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );

// Initialize Registry
IPSRegistry::init();

// Include Headers (After Registry)
require_once( IPS_ROOT_PATH . 'sources/base/ipsMember.php' );

// Check Parameters
if (!isset($_GET['id']) || !isset($_GET['pw']))
{
// Display Error
echo "MISSING_PARAMETERS";

// Stop Execution
exit;
}

// Setup Parameters
$Parameter['UserID'] = $_GET['id'];
$Parameter['Password'] = md5($_GET['pw']);

// Authenticate User
if ( ipsMember::authenticateMember( $Parameter['UserID'], $Parameter['Password'] ) == true )
echo "SUCCESS_LOGIN";
else
echo "FAIL_LOGIN";

// Stop Execution
exit();
?> 


#2 DustinRyan

DustinRyan

    Guy in Charge of Stuff and Things

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 5,128 posts
  • IPB Version:v3.4.x
  • Real Name:Dustin Schriffert
  • Location:Connecticut

Posted 01 February 2016 - 11:44 PM

Your board URL in your profile is breaching our guidelines

No support will be given to users with nulled/pirated forums, or are actively involved in piracy.

signature_2014.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

IPB Skin By Virteq