Made password field non-mandatory upon setup
This commit is contained in:
parent
f06b9a14f3
commit
6786dfcabd
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user