Secondary Password
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 227
- Joined: Thu Sep 26, 2013 3:48 pm
Secondary Password
What happens if a player forgets it? How can it be recovered?
- UnAfraid
- L2j Veteran
- Posts: 4199
- Joined: Mon Jul 23, 2007 4:25 pm
- Location: Bulgaria
- Contact:
-
- Posts: 227
- Joined: Thu Sep 26, 2013 3:48 pm
Re: Secondary Password
Are there any scripts? Anything already made?
And where are those passes are saved?
And where are those passes are saved?
- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
Re: Secondary Password
In your Database in table "accounts" there is column called "password". So you can manually change it ofc need to use server encryption methods.
-
- Posts: 227
- Joined: Thu Sep 26, 2013 3:48 pm
Re: Secondary Password
This is the ACCOUNT password, there should be a separate pswrd for charactersZealar wrote:In your Database in table "accounts" there is column called "password". So you can manually change it ofc need to use server encryption methods.
- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
Re: Secondary Password
That start sound me like something custom. Where is that second password ? I remember H5 got only 1 password and is account one.
-
- Posts: 227
- Joined: Thu Sep 26, 2013 3:48 pm
Re: Secondary Password
lol you are custom, it is in configs.Zealar wrote:That start sound me like something custom. Where is that second password ? I remember H5 got only 1 password and is account one.
- lucan
- Posts: 590
- Joined: Wed Mar 16, 2011 10:39 pm
- Location: Brazil
Re: Secondary Password
I think he is talking about the PIN number of the H5.
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: Secondary Password
Character numeric password is a GOD feature.
Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 

-
- L2j Veteran
- Posts: 314
- Joined: Mon Mar 11, 2013 4:19 pm
Re: Secondary Password
We have it implemented and its supported by H5 client without any client modification...Zoey76 wrote:Character numeric password is a GOD feature.
com.l2jserver.gameserver.security.SecondaryPasswordAuth
The password is stored in game server database in table 'account_gsdata' at var 'secauth_pwd' and its encrypted using sha1 and Base64,
Code: Select all
MessageDigest md = MessageDigest.getInstance("SHA");byte[] raw = password.getBytes("UTF-8");byte[] hash = md.digest(raw);return Base64.getEncoder().encodeToString(hash);
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: Secondary Password
Doesn't it crash the client?
Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 

-
- Posts: 227
- Joined: Thu Sep 26, 2013 3:48 pm
Re: Secondary Password
Works just fine actually, the only thing I wonder about is if there any script that someone made that I could use for implementation to my web for char password recovery?Zoey76 wrote:Doesn't it crash the client?


