mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
Don't use obsolete Password property
This commit is contained in:
parent
5b0dc21c64
commit
856819e58f
@ -177,11 +177,9 @@ namespace Jellyfin.Api.Controllers
|
|||||||
return StatusCode(StatusCodes.Status403Forbidden, "Only sha1 password is not allowed.");
|
return StatusCode(StatusCodes.Status403Forbidden, "Only sha1 password is not allowed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Password should always be null
|
|
||||||
AuthenticateUserByName request = new AuthenticateUserByName
|
AuthenticateUserByName request = new AuthenticateUserByName
|
||||||
{
|
{
|
||||||
Username = user.Username,
|
Username = user.Username,
|
||||||
Password = null,
|
|
||||||
Pw = pw
|
Pw = pw
|
||||||
};
|
};
|
||||||
return await AuthenticateUserByName(request).ConfigureAwait(false);
|
return await AuthenticateUserByName(request).ConfigureAwait(false);
|
||||||
@ -208,7 +206,6 @@ namespace Jellyfin.Api.Controllers
|
|||||||
DeviceId = auth.DeviceId,
|
DeviceId = auth.DeviceId,
|
||||||
DeviceName = auth.Device,
|
DeviceName = auth.Device,
|
||||||
Password = request.Pw,
|
Password = request.Pw,
|
||||||
PasswordSha1 = request.Password,
|
|
||||||
RemoteEndPoint = HttpContext.GetNormalizedRemoteIp().ToString(),
|
RemoteEndPoint = HttpContext.GetNormalizedRemoteIp().ToString(),
|
||||||
Username = request.Username
|
Username = request.Username
|
||||||
}).ConfigureAwait(false);
|
}).ConfigureAwait(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user