mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 20:08:59 +02:00
fixed nul user check to be first per justaman
This commit is contained in:
parent
1dc5a624a7
commit
1ffd443d5a
1 changed files with 5 additions and 4 deletions
|
@ -33,14 +33,15 @@ namespace Emby.Server.Implementations.Library
|
||||||
//This is the verson that we need to use for local users. Because reasons.
|
//This is the verson that we need to use for local users. Because reasons.
|
||||||
public Task<ProviderAuthenticationResult> Authenticate(string username, string password, User resolvedUser)
|
public Task<ProviderAuthenticationResult> Authenticate(string username, string password, User resolvedUser)
|
||||||
{
|
{
|
||||||
ConvertPasswordFormat(resolvedUser);
|
|
||||||
byte[] passwordbytes = Encoding.UTF8.GetBytes(password);
|
|
||||||
bool success = false;
|
bool success = false;
|
||||||
if (resolvedUser == null)
|
if (resolvedUser == null)
|
||||||
{
|
{
|
||||||
success = false;
|
success = false;
|
||||||
throw new Exception("Invalid username or password");
|
throw new Exception("Invalid username or password");
|
||||||
}
|
}
|
||||||
|
ConvertPasswordFormat(resolvedUser);
|
||||||
|
byte[] passwordbytes = Encoding.UTF8.GetBytes(password);
|
||||||
|
|
||||||
if (!resolvedUser.Password.Contains("$"))
|
if (!resolvedUser.Password.Contains("$"))
|
||||||
{
|
{
|
||||||
ConvertPasswordFormat(resolvedUser);
|
ConvertPasswordFormat(resolvedUser);
|
||||||
|
|
Loading…
Reference in a new issue