|
Post by Keith on Nov 17, 2006 11:46:57 GMT -5
Well, I kind of forgot my password. Is there a way to e-mail the password to myself or some sort of file to check? I feel like an idiot for asking this. Haha!
|
|
|
Post by coldstone on Nov 20, 2006 0:26:16 GMT -5
Don't feel like an idiot! You can get your password out of the gm-authors.cgi file. Problem is, if it isn't the default 'Alice' account, your password will be crypted (scrambled with the perl crypt function). If you look in the gm_dev_guide ( web.petefinnigan.com/gm_dev_guide.html), under the gm-authors.cgi section, you will see that the password is the second item of a line. So you basically have two options. Gm will always allow the 'Alice' account to use a non-crypted password (i.e. 'wonderland'). So you can copy the line with your author name and change your name to 'Alice' (not the capitalization) and then next part after the first '|' to be 'wonderland'. You should be able to log in as Alice now and edit your real author entry's password. You should then delete the Alice author asp, or change the password. Secondly, if you are familiar with perl and can run it from the command line you could run this command: perl -e 'print crypt("NEWPW", "NEWPW") ."\n"; '
You'll want to replace the letters 'NEWPW' with your new password. Copy the output and replace the second item of your line in the gm-authors.cgi file (the letters between the first and second '|' character). Write back if there are any issues.
|
|
|
Post by Keith on Nov 20, 2006 12:50:28 GMT -5
I downloaded the authors file and saw my encrypted password, but I have no clue how to decrypt. My friend knows how, but he's not home right now. So I guess I'll ask you how to use that perl command, because I'm not really familiar with it and it would be great to know how just in case I do this again in the future. Haha.
|
|
|
Post by coldstone on Nov 22, 2006 22:56:12 GMT -5
Thats part of the reason for the complicated process, you can't decrypt something you crypted ( there is no 'decrypt' in perl). Basically, when you log in, it 'crypts' the password you type in and compares it to the crypted value in the gm-authors.cgi file. Thats why you need to recrypt a new password and modify the authors file.
|
|
|
Post by Keith on Nov 23, 2006 10:58:59 GMT -5
So my friend was lying to me when he said that he can decrypt passwords? Psht, that loser. Anyways, I somehow remembered my password! I just kept typing every single one I've created for whatever things I've signed up for and got it! Thanks for helping me out. I'll look into that perl command, too, just incase this happens again.
|
|
|
Post by coldstone on Nov 27, 2006 17:41:13 GMT -5
Well, its not impossible, just very hard. When I first started working with Perl, I thought it would have a 'decrypt' command since it had a 'crypt' command.
Glad to hear its sorted out.
|
|