Armathentication

For all the help you need with Armagetron!
deleet
On Lightcycle Grid
Posts: 25
Joined: Sun Feb 28, 2010 1:41 am

Re: Armathentication

Post by deleet »

It's phpbb3, you can download it off their website. You know what you are looking for.
Image
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Armathentication

Post by Z-Man »

That one definitely needs modifications to store a hash armathentication can use. Tank has set up the system we use here, I suggest we just wait for him to tell us what he did. Or maybe look around for documentation he left.
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: Armathentication

Post by AI-team »

I just did the following:
Just modify the function phpbb_check_hash in the file includes/functions

Code: Select all

function phpbb_check_hash($password, $hash)
{
	$itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
	if (strlen($hash) == 34)
	{
		return (_hash_crypt_private($password, $hash, $itoa64) === $hash) ? true : false;
	}

  if(md5($password) === $hash) {
  $md5_pw = md5($password);
  mysql_connect('','','');
  mysql_select_db('');
  mysql_query('UPDATE phpbb_users set user_password_armaauth = $md5_pw where user_id = $row[user_id]');
                 
  return true;
	}
	else return false;
}
Even if that's not the best way to do it , it's easy and works fine for me =]
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Re: Armathentication

Post by Tank Program »

That's roughly how I did it as well... adding a new column to the database.
Image
Post Reply