Fixes creating new account.
This commit is contained in:
@@ -330,7 +330,7 @@ namespace Framework.Cryptography
|
|||||||
{
|
{
|
||||||
byte[] fix = new byte[65];
|
byte[] fix = new byte[65];
|
||||||
fix[64] = 1;
|
fix[64] = 1;
|
||||||
x -= new BigInteger(fix);
|
x -= new BigInteger(fix, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return x % (N - 1);
|
return x % (N - 1);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace Game
|
|||||||
if (withGameAccount)
|
if (withGameAccount)
|
||||||
{
|
{
|
||||||
gameAccountName = newAccountId + "#1";
|
gameAccountName = newAccountId + "#1";
|
||||||
string gameAccountPassword = password.Substring(0, 16);
|
string gameAccountPassword = password.Substring(0, Math.Min(16, password.Length));
|
||||||
Global.AccountMgr.CreateAccount(gameAccountName, gameAccountPassword.ToUpper(), email, newAccountId, 1);
|
Global.AccountMgr.CreateAccount(gameAccountName, gameAccountPassword.ToUpper(), email, newAccountId, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user