mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
sync updates
This commit is contained in:
13
MediaBrowser.Common.Implementations/Security/MbAdmin.cs
Normal file
13
MediaBrowser.Common.Implementations/Security/MbAdmin.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
namespace MediaBrowser.Common.Implementations.Security
|
||||
{
|
||||
public class MbAdmin
|
||||
{
|
||||
public const string HttpUrl = "https://www.mb3admin.com/admin/";
|
||||
|
||||
/// <summary>
|
||||
/// Leaving as http for now until we get it squared away
|
||||
/// </summary>
|
||||
public const string HttpsUrl = "http://www.mb3admin.com/admin/";
|
||||
}
|
||||
}
|
||||
@@ -17,9 +17,7 @@ namespace MediaBrowser.Common.Implementations.Security
|
||||
/// </summary>
|
||||
public class PluginSecurityManager : ISecurityManager
|
||||
{
|
||||
private const string MbAdminUrl = "https://www.mb3admin.com/admin/";
|
||||
|
||||
private const string MBValidateUrl = MbAdminUrl + "service/registration/validate";
|
||||
private const string MBValidateUrl = MbAdmin.HttpsUrl + "service/registration/validate";
|
||||
|
||||
/// <summary>
|
||||
/// The _is MB supporter
|
||||
@@ -162,7 +160,7 @@ namespace MediaBrowser.Common.Implementations.Security
|
||||
return new SupporterInfo();
|
||||
}
|
||||
|
||||
var url = MbAdminUrl + "/service/supporter/retrieve?key=" + key;
|
||||
var url = MbAdmin.HttpsUrl + "/service/supporter/retrieve?key=" + key;
|
||||
|
||||
using (var stream = await _httpClient.Get(url, CancellationToken.None).ConfigureAwait(false))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user