Change password command or something like it.

Post Reply
flawd95
Posts: 4
Joined: Tue Jul 08, 2014 3:05 am

Change password command or something like it.

Post by flawd95 » Tue Oct 21, 2014 12:42 am

I was wondering if it was at all possible to have a @changepassword command or even just a quick php script or something to be able to change someones password if it's lost. I have seen references to people on here doing web pages that have this capability but I don't see any code or anything. even if I knew what type of hash dsp uses in the database. I'm not an expert by any means but I have been able to code/script a few things. if someone could tell me what hash the database uses so I could replace passwords and/or check if they're correct that would be perfect.

Also I have scripted blue mage af1 (the sword). it seems pretty much like I remember it but i'm sure i'ts amateur compared to what you guys can do. if I post it someone can someone pro it up and donate it back to the project? it works. I've tested it. I would very much like to give back what I can as just having this server is a privilege that i can't describe.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Change password command or something like it.

Post by kjLotus » Tue Oct 21, 2014 1:15 am

you can check where the login server adds a record into the accounts table by opening the DSConnect-server solution, and searching it for "insert into accounts"

Code: Select all

INSERT INTO accounts(id,login,password,timecreate,timelastmodify,status,priv) VALUES(%d,'%s',PASSWORD('%s'),'%s',NULL,%d,%d);
can see in here that the password is only hashed with mysql's PASSWORD function, so it shouldn't be too hard to do an UPDATE on accounts with a new password.

you can post the AF quest here if you want, but the easiest way is to just open a pull request and someone (usually me) will tell you what you've done wrong and get you to fix it. that way you learn instead of just having someone else do it for you

flawd95
Posts: 4
Joined: Tue Jul 08, 2014 3:05 am

Re: Change password command or something like it.

Post by flawd95 » Tue Oct 21, 2014 10:05 am

that's awesome!!!!! I'd love a chance to get to learn a bit more too. How do I do a pull request? I'm sorry if this is a stupid question, I'm not familiar with all these methods of publishing. I know it has something to do with the github but as for what, no idea.


Post Reply