Don't generate keys on dedis.
This commit is contained in:
parent
a3d8ee8094
commit
818c21b3c3
@ -147,6 +147,8 @@ namespace Components
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Auth::StoreKey()
|
void Auth::StoreKey()
|
||||||
|
{
|
||||||
|
if (!Dedicated::IsDedicated() && !ZoneBuilder::IsEnabled())
|
||||||
{
|
{
|
||||||
Proto::Auth::Certificate cert;
|
Proto::Auth::Certificate cert;
|
||||||
cert.set_token(Auth::GuidToken.ToString());
|
cert.set_token(Auth::GuidToken.ToString());
|
||||||
@ -154,9 +156,11 @@ namespace Components
|
|||||||
|
|
||||||
Utils::WriteFile("players/guid.dat", cert.SerializeAsString());
|
Utils::WriteFile("players/guid.dat", cert.SerializeAsString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Auth::LoadKey(bool force)
|
void Auth::LoadKey(bool force)
|
||||||
{
|
{
|
||||||
|
if (Dedicated::IsDedicated() || ZoneBuilder::IsEnabled()) return;
|
||||||
if (!force && Auth::GuidKey.IsValid()) return;
|
if (!force && Auth::GuidKey.IsValid()) return;
|
||||||
|
|
||||||
Proto::Auth::Certificate cert;
|
Proto::Auth::Certificate cert;
|
||||||
|
Loading…
Reference in New Issue
Block a user