v0.0.1 (download not working)
This commit is contained in:
@@ -12,7 +12,7 @@ public class IServController : ControllerBase {
|
||||
|
||||
[HttpPost("login")]
|
||||
public async Task<ActionResult<AuthKeys>> GetAuthKeysV2([FromBody] Credentials credentials) {
|
||||
await using var browser = await Puppeteer.LaunchAsync(new LaunchOptions { Headless = true });
|
||||
await using var browser = await Puppeteer.LaunchAsync(new LaunchOptions { Headless = true, Args = new []{"--no-sandbox"} });
|
||||
await using var page = await browser.NewPageAsync();
|
||||
await page.GoToAsync($"https://{credentials.Domain}/iserv/auth/login");
|
||||
|
||||
@@ -21,7 +21,7 @@ public class IServController : ControllerBase {
|
||||
await page.Keyboard.PressAsync("Tab");
|
||||
await page.Keyboard.TypeAsync(credentials.Password);
|
||||
await page.ClickAsync("body > div > main > div > div.panel-body > form > div.row > div:nth-child(1) > button");
|
||||
await Task.Delay(500);
|
||||
await Task.Delay(2000);
|
||||
|
||||
var authKeys = new AuthKeys();
|
||||
var cookies = await page.GetCookiesAsync();
|
||||
|
||||
@@ -68,7 +68,7 @@ public class MailController : ControllerBase {
|
||||
Subject = message.Subject.Replace("(Aspose.Email Evaluation)", ""),
|
||||
Time = message.Date,
|
||||
Read = true,
|
||||
Message = message.Body.Replace("EVALUATION ONLY. CREATED WITH ASPOSE.EMAIL FOR .NET. COPYRIGHT 2002-2022 ASPOSE PTY LTD. \r\n http://www.aspose.com/corporate/purchase/end-user-license-agreement.aspx: View EULA Online\r\n", ""),
|
||||
Message = message.Body.Split("View EULA")[1],
|
||||
Attachments = message.Attachments.Select(a => a.Name).ToArray()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user