mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Made password field non-mandatory upon setup
This commit is contained in:
parent
f06b9a14f3
commit
6786dfcabd
1 changed files with 4 additions and 2 deletions
|
@ -8,7 +8,6 @@ using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Controller.MediaEncoding;
|
using MediaBrowser.Controller.MediaEncoding;
|
||||||
using MediaBrowser.Controller.Net;
|
using MediaBrowser.Controller.Net;
|
||||||
using MediaBrowser.Model.Services;
|
using MediaBrowser.Model.Services;
|
||||||
using MediaBrowser.Controller.Entities;
|
|
||||||
|
|
||||||
namespace MediaBrowser.Api
|
namespace MediaBrowser.Api
|
||||||
{
|
{
|
||||||
|
@ -115,7 +114,10 @@ namespace MediaBrowser.Api
|
||||||
user.Name = request.Name;
|
user.Name = request.Name;
|
||||||
|
|
||||||
_userManager.UpdateUser(user);
|
_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();
|
var result = new UpdateStartupUserResult();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue