mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-19 09:38:05 +00:00
Made password field non-mandatory upon setup
This commit is contained in:
@@ -8,7 +8,6 @@ using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Controller.MediaEncoding;
|
||||
using MediaBrowser.Controller.Net;
|
||||
using MediaBrowser.Model.Services;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
|
||||
namespace MediaBrowser.Api
|
||||
{
|
||||
@@ -115,7 +114,10 @@ namespace MediaBrowser.Api
|
||||
user.Name = request.Name;
|
||||
|
||||
_userManager.UpdateUser(user);
|
||||
await _userManager.ChangePassword(user, request.Password).ConfigureAwait(false);
|
||||
|
||||
if (!string.IsNullOrEmpty(request.Password)) {
|
||||
await _userManager.ChangePassword(user, request.Password).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
var result = new UpdateStartupUserResult();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user