can't login as admin

filips

Joined: 2004-08-21
Posts: 3
Posted: Wed, 2004-09-01 02:52

I've made all steps of the configuration without a problem and after it I could'nt login as the admin - I'm sure I typed the good one because I've look in the config.php for it.
Everything seems to be fine.....but.....

Any ideas...?
http://filips.afraid.org/gallery2/
login: admin
$gallery->setConfig('setup.password', 'something');
Try it.

Apache/2.0.48
(Mandrake Linux/6.3.100mdk)
PHP/4.3.4
Server at filips.afraid.org Port 80
mysql - 4.0.18

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2004-09-02 05:53

I think that G2 automatically installed itself in Polish for you, probably because your browser was set to use pl_PL as the default language. One of the things that we're playing with right now is having it translate the "admin" username for you. I don't know if this is a good idea or a bad one (anybody have an opinion here?). It's certainly not documented at all! We should fix that.

At any rate, I looked in the Polish translation file and our Polish translator (the esteemed Robert d`Aystetten) has translated "admin" to be "adminstrator". So try logging in as "administrator". I tried it, but it didn't work with the "something" password -- maybe that's no longer correct?

If that doesn't work, you can look up the username by executing this SQL:
select g_userName from g2_User where g_id=5;

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2004-09-02 06:41

I would strongly suggest that "admin" always be admin. I dont think other language distro's alter "root" to be something else (like the word for a trees root in some other language?).

Its a neat/cute idea, but would probably cause more confusion than it would resolve. Also, could "adminstrator" simply be a typo and missing the "i"?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2004-09-03 17:50

Ok, I committed a fix to stop translating the admin username.

 
poper

Joined: 2004-01-13
Posts: 1
Posted: Sun, 2004-09-05 09:27

i have the same problem...
i cant login, i try with: admin, administrator, adminstrator but dosn't work :(
please help!
regards

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2004-09-05 15:36

poper, did you try the sql command listed above to find the username? Check your config.php file for the admin password you entered at install time; if you did not change the password later for your admin user then it should still be the right password.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2004-09-06 17:51

Or get the latest nightly snapshot and reinstall from scratch using it, since I removed the code that translates the "admin" username.

 
sachagriffin

Joined: 2006-02-23
Posts: 1
Posted: Tue, 2006-03-14 16:44

I think you mean g_id=6;
5 is guest..