mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
fix gravatars not showing
fix web config not saving Uri fix issue with token login
This commit is contained in:
@ -25,14 +25,14 @@ namespace WebfrontCore.Controllers
|
||||
|
||||
try
|
||||
{
|
||||
#if DEBUG == true
|
||||
var client = Utilities.IW4MAdminClient();
|
||||
bool loginSuccess = true;
|
||||
#else
|
||||
//#if DEBUG == true
|
||||
// var client = Utilities.IW4MAdminClient();
|
||||
// bool loginSuccess = true;
|
||||
//#else
|
||||
var client = Manager.GetPrivilegedClients()[clientId];
|
||||
bool loginSuccess = Manager.TokenAuthenticator.AuthorizeToken(client.NetworkId, password) ||
|
||||
(await Task.FromResult(SharedLibraryCore.Helpers.Hashing.Hash(password, client.PasswordSalt)))[0] == client.Password;
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
if (loginSuccess)
|
||||
{
|
||||
|
Reference in New Issue
Block a user