forked from sim0n00ps/OF-DL
Disabled auth file deletion
This commit is contained in:
parent
5f53d88763
commit
7f95ded484
@ -198,13 +198,13 @@ public class Program(IServiceProvider serviceProvider)
|
|||||||
Log.Error("Auth failed");
|
Log.Error("Auth failed");
|
||||||
authService.CurrentAuth = null;
|
authService.CurrentAuth = null;
|
||||||
|
|
||||||
if (!configService.CurrentConfig.DisableBrowserAuth)
|
//if (!configService.CurrentConfig.DisableBrowserAuth)
|
||||||
{
|
//{
|
||||||
if (File.Exists("auth.json"))
|
// if (File.Exists("auth.json"))
|
||||||
{
|
// {
|
||||||
File.Delete("auth.json");
|
// File.Delete("auth.json");
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (!configService.CurrentConfig.NonInteractiveMode &&
|
if (!configService.CurrentConfig.NonInteractiveMode &&
|
||||||
!configService.CurrentConfig.DisableBrowserAuth)
|
!configService.CurrentConfig.DisableBrowserAuth)
|
||||||
@ -736,11 +736,11 @@ public class Program(IServiceProvider serviceProvider)
|
|||||||
else if (File.Exists("auth.json"))
|
else if (File.Exists("auth.json"))
|
||||||
{
|
{
|
||||||
Log.Information("Auth file found but could not be deserialized");
|
Log.Information("Auth file found but could not be deserialized");
|
||||||
if (!configService.CurrentConfig.DisableBrowserAuth)
|
//if (!configService.CurrentConfig.DisableBrowserAuth)
|
||||||
{
|
//{
|
||||||
Log.Debug("Deleting auth.json");
|
// Log.Debug("Deleting auth.json");
|
||||||
File.Delete("auth.json");
|
// File.Delete("auth.json");
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (configService.CurrentConfig.NonInteractiveMode)
|
if (configService.CurrentConfig.NonInteractiveMode)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user