mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 23:42:36 -07:00
Finished the auth stuff
This commit is contained in:
parent
0e99dc29c9
commit
0cfb6c8b1e
5 changed files with 103 additions and 76 deletions
|
@ -512,6 +512,13 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
return Response.AsJson(valid.SendJsonError());
|
||||
}
|
||||
if (settings.Authentication)
|
||||
{
|
||||
if (string.IsNullOrEmpty(settings.EmailUsername) || string.IsNullOrEmpty(settings.EmailPassword))
|
||||
{
|
||||
return Response.AsJson(new JsonResponseModel {Result = false, Message = "SMTP Authentication is enabled, please specify a username and password"});
|
||||
}
|
||||
}
|
||||
|
||||
var result = EmailService.SaveSettings(settings);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue