forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: taffy056 on October 27, 2005, 06:43:04 pm

Title: Can't Login
Post by: taffy056 on October 27, 2005, 06:43:04 pm
Hi,

i am having problem login into my coppermine, I pressed go back to default in the config and now it says that "Selected user does not exist!" when I try for a new password for my account. Can you please help!

taffy
Title: Re: Can't Login
Post by: OmegaGOD on October 27, 2005, 08:03:14 pm
You will need to login with the original administrative username/password you used when creating CPG. If you don't have that then you will can use phpMyAdmin to manually change your admin password.
Title: Re: Can't Login
Post by: Abbas Ali on October 27, 2005, 08:54:16 pm
Look for the username and password in cpg_users table in your database.
Title: Re: Can't Login
Post by: xplicit on October 27, 2005, 11:34:24 pm
Exactly as mentioned above,

search for a usergroup 1 member with for instance phpmyadmin in the cpg***_users list

Alternative you can add one yourself.

If you dont have acces to a programm like phpmyadmin you can also wrote the query in a php file and execute it.

Someting like

Code: [Select]
<?php        
define('IN_COPPERMINE', true);
require('include/init.inc.php');        

$sql_query = db_query("INSERT INTO CPG135_users VALUES (1, 1, 'YES', 'admin_username', 'admin_password', NOW(), NOW(), '', '', '', '', '', '', '')");

?>

Adjust the 135 for your own version and the number in the beginning (1) to a non existing ID number and off course change the names