Kareadita / Kavita

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
http://www.kavitareader.com
GNU General Public License v3.0
6.24k stars 324 forks source link

login not working on ipad #1475

Closed HerrFrutti closed 2 years ago

HerrFrutti commented 2 years ago

I'm having the problem, that I can't login on my Ipad 9 (15.6.1). Safari Browser works, but brave and opera browser... don't know what happens there. This message pops up when first loading the page. IMG_0007 And after trying to login, this message pops up: IMG_0006 If you need any thing let me know. thanks :)

HerrFrutti commented 2 years ago

I've downloaded the logs and extracted the last x lines, not sure if this is the relevant info you need... I'm just seeing some warning with [InvalidPassword]

2022-08-25T07:23:19.0526723+00:00   INFO    [Microsoft.EntityFrameworkCore.Database.Command]    [Microsoft.EntityFrameworkCore.Database.Command.CommandExecuted]    Executed DbCommand (0ms) [Parameters=[@__username_0='?' (Size = 4)], CommandType='Text', CommandTimeout='30']
SELECT "a"."Id", "a"."AccessFailedCount", "a"."ApiKey", "a"."ConcurrencyStamp", "a"."ConfirmationToken", "a"."Created", "a"."Email", "a"."EmailConfirmed", "a"."LastActive", "a"."LockoutEnabled", "a"."LockoutEnd", "a"."NormalizedEmail", "a"."NormalizedUserName", "a"."PasswordHash", "a"."PhoneNumber", "a"."PhoneNumberConfirmed", "a"."RowVersion", "a"."SecurityStamp", "a"."TwoFactorEnabled", "a"."UserName"
FROM "AspNetUsers" AS "a"
WHERE "a"."UserName" = @__username_0
LIMIT 2
2022-08-25T07:23:19.0529697+00:00   INFO    [Microsoft.EntityFrameworkCore.Database.Command]    [Microsoft.EntityFrameworkCore.Database.Command.CommandExecuted]    Executed DbCommand (0ms) [Parameters=[@__normalizedRoleName_0='?' (Size = 5)], CommandType='Text', CommandTimeout='30']
SELECT "a"."Id", "a"."ConcurrencyStamp", "a"."Name", "a"."NormalizedName"
FROM "AspNetRoles" AS "a"
WHERE "a"."NormalizedName" = @__normalizedRoleName_0
LIMIT 2
2022-08-25T07:23:19.0539724+00:00   INFO    [Microsoft.EntityFrameworkCore.Database.Command]    [Microsoft.EntityFrameworkCore.Database.Command.CommandExecuted]    Executed DbCommand (0ms) [Parameters=[@__p_0='?' (DbType = Int32), @__p_1='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30']
SELECT "a"."UserId", "a"."RoleId"
FROM "AspNetUserRoles" AS "a"
WHERE ("a"."UserId" = @__p_0) AND ("a"."RoleId" = @__p_1)
LIMIT 1
2022-08-25T07:23:19.0545236+00:00   INFO    [Microsoft.EntityFrameworkCore.Database.Command]    [Microsoft.EntityFrameworkCore.Database.Command.CommandExecuted]    Executed DbCommand (0ms) [Parameters=[@p2='?' (DbType = Int32), @p3='?' (Size = 36), @p0='?' (DbType = DateTime), @p1='?' (DbType = UInt32), @p4='?' (DbType = UInt32)], CommandType='Text', CommandTimeout='30']
UPDATE "AspNetUsers" SET "LastActive" = @p0, "RowVersion" = @p1
WHERE "Id" = @p2 AND "ConcurrencyStamp" = @p3 AND "RowVersion" = @p4;
SELECT changes();
2022-08-25T07:23:23.4014920+00:00   INFO    [Microsoft.EntityFrameworkCore.Infrastructure]  [Microsoft.EntityFrameworkCore.Infrastructure.ContextInitialized]   Entity Framework Core 6.0.7 initialized 'DataContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.7' with options: DetailedErrorsEnabled 
2022-08-25T07:23:23.4018130+00:00   INFO    [Microsoft.AspNetCore.Routing.EndpointMiddleware]   [ExecutedEndpoint]  Executed endpoint 'hubs/messages'
2022-08-25T07:23:23.4018341+00:00   INFO    [Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware]    [ResponseNotCached] The response could not be cached for this request.
2022-08-25T07:23:23.4018623+00:00   INFO    [Microsoft.AspNetCore.Hosting.Diagnostics]  [2] Request finished HTTP/1.1 GET <my-server-addres>/hubs/messages?id=bKzK2dV4Eajy2PRRpFh-qg&access_token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiJtYXJlIiwicm9sZSI6WyJBZG1pbiIsIkNoYW5nZSBQYXNzd29yZCJdLCJuYmYiOjE2NjExNzUxMDIsImV4cCI6MTY2MjM4NDcwMiwiaWF0IjoxNjYxMTc1MTAyfQ.Wj6QBuVRW7_YhWVnYuzuFdVvEjlBfaDm5WgBskdqEyio1SxC7-8hluBs36d8i2YJBy-k81dBk3lX-zZ2IYfwYw - - - 101 - - 4496.2120ms
2022-08-25T07:23:25.7779417+00:00   INFO    [Microsoft.AspNetCore.Hosting.Diagnostics]  [1] Request starting HTTP/1.1 POST <my-server-addres>/api/account/login application/json 33
2022-08-25T07:23:25.7783501+00:00   INFO    [Microsoft.AspNetCore.Routing.EndpointMiddleware]   [ExecutingEndpoint] Executing endpoint 'API.Controllers.AccountController.Login (API)'
2022-08-25T07:23:25.7784801+00:00   INFO    [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker]   [ControllerActionExecuting] Route matched with {action = "Login", controller = "Account"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[API.DTOs.UserDto]] Login(API.DTOs.Account.LoginDto) on controller API.Controllers.AccountController (API).
2022-08-25T07:23:25.7788848+00:00   INFO    [Microsoft.EntityFrameworkCore.Infrastructure]  [Microsoft.EntityFrameworkCore.Infrastructure.ContextInitialized]   Entity Framework Core 6.0.7 initialized 'DataContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.7' with options: DetailedErrorsEnabled 
2022-08-25T07:23:25.7801004+00:00   INFO    [Microsoft.EntityFrameworkCore.Database.Command]    [Microsoft.EntityFrameworkCore.Database.Command.CommandExecuted]    Executed DbCommand (0ms) [Parameters=[@__ToUpper_0='?' (Size = 4)], CommandType='Text', CommandTimeout='30']
SELECT "a"."Id", "a"."AccessFailedCount", "a"."ApiKey", "a"."ConcurrencyStamp", "a"."ConfirmationToken", "a"."Created", "a"."Email", "a"."EmailConfirmed", "a"."LastActive", "a"."LockoutEnabled", "a"."LockoutEnd", "a"."NormalizedEmail", "a"."NormalizedUserName", "a"."PasswordHash", "a"."PhoneNumber", "a"."PhoneNumberConfirmed", "a"."RowVersion", "a"."SecurityStamp", "a"."TwoFactorEnabled", "a"."UserName", "a0"."Id", "a0"."AppUserId", "a0"."AutoCloseMenu", "a0"."BackgroundColor", "a0"."BlurUnreadSummaries", "a0"."BookReaderFontFamily", "a0"."BookReaderFontSize", "a0"."BookReaderImmersiveMode", "a0"."BookReaderLayoutMode", "a0"."BookReaderLineSpacing", "a0"."BookReaderMargin", "a0"."BookReaderReadingDirection", "a0"."BookReaderTapToPaginate", "a0"."BookThemeName", "a0"."GlobalPageLayoutMode", "a0"."LayoutMode", "a0"."PageSplitOption", "a0"."PromptForDownloadSize", "a0"."ReaderMode", "a0"."ReadingDirection", "a0"."ScalingOption", "a0"."ShowScreenHints", "a0"."ThemeId"
FROM "AspNetUsers" AS "a"
LEFT JOIN "AppUserPreferences" AS "a0" ON "a"."Id" = "a0"."AppUserId"
WHERE "a"."NormalizedUserName" = @__ToUpper_0
LIMIT 2
2022-08-25T07:23:25.7864417+00:00   WARN    [Microsoft.AspNetCore.Identity.UserManager] [InvalidPassword]   Invalid password for user.
2022-08-25T07:23:25.7926392+00:00   WARN    [Microsoft.AspNetCore.Identity.UserManager] [InvalidPassword]   Invalid password for user.
2022-08-25T07:23:25.7926450+00:00   WARN    [Microsoft.AspNetCore.Identity.SignInManager]   [InvalidPassword]   User failed to provide the correct password.
2022-08-25T07:23:25.7930462+00:00   INFO    [Microsoft.EntityFrameworkCore.Database.Command]    [Microsoft.EntityFrameworkCore.Database.Command.CommandExecuted]    Executed DbCommand (0ms) [Parameters=[@__normalizedUserName_0='?' (Size = 4)], CommandType='Text', CommandTimeout='30']
SELECT "a"."Id", "a"."AccessFailedCount", "a"."ApiKey", "a"."ConcurrencyStamp", "a"."ConfirmationToken", "a"."Created", "a"."Email", "a"."EmailConfirmed", "a"."LastActive", "a"."LockoutEnabled", "a"."LockoutEnd", "a"."NormalizedEmail", "a"."NormalizedUserName", "a"."PasswordHash", "a"."PhoneNumber", "a"."PhoneNumberConfirmed", "a"."RowVersion", "a"."SecurityStamp", "a"."TwoFactorEnabled", "a"."UserName"
FROM "AspNetUsers" AS "a"
WHERE "a"."NormalizedUserName" = @__normalizedUserName_0
LIMIT 1
2022-08-25T07:23:25.7938012+00:00   INFO    [Microsoft.EntityFrameworkCore.Database.Command]    [Microsoft.EntityFrameworkCore.Database.Command.CommandExecuted]    Executed DbCommand (0ms) [Parameters=[@p19='?' (DbType = Int32), @p0='?' (DbType = Int32), @p1='?' (Size = 36), @p2='?' (Size = 36), @p20='?' (Size = 36), @p3='?', @p4='?' (DbType = DateTime), @p5='?' (Size = 19), @p6='?' (DbType = Boolean), @p7='?' (DbType = DateTime), @p8='?' (DbType = Boolean), @p9='?' (DbType = DateTimeOffset), @p10='?' (Size = 19), @p11='?' (Size = 4), @p12='?' (Size = 84), @p13='?', @p14='?' (DbType = Boolean), @p15='?' (DbType = UInt32), @p21='?' (DbType = UInt32), @p16='?' (Size = 32), @p17='?' (DbType = Boolean), @p18='?' (Size = 4)], CommandType='Text', CommandTimeout='30']
UPDATE "AspNetUsers" SET "AccessFailedCount" = @p0, "ApiKey" = @p1, "ConcurrencyStamp" = @p2, "ConfirmationToken" = @p3, "Created" = @p4, "Email" = @p5, "EmailConfirmed" = @p6, "LastActive" = @p7, "LockoutEnabled" = @p8, "LockoutEnd" = @p9, "NormalizedEmail" = @p10, "NormalizedUserName" = @p11, "PasswordHash" = @p12, "PhoneNumber" = @p13, "PhoneNumberConfirmed" = @p14, "RowVersion" = @p15, "SecurityStamp" = @p16, "TwoFactorEnabled" = @p17, "UserName" = @p18
WHERE "Id" = @p19 AND "ConcurrencyStamp" = @p20 AND "RowVersion" = @p21;
SELECT changes();
2022-08-25T07:23:25.8343419+00:00   INFO    [Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor]  [ObjectResultExecuting] Executing UnauthorizedObjectResult, writing value of type 'System.String'.
2022-08-25T07:23:25.8344903+00:00   INFO    [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker]   [ActionExecuted]    Executed action API.Controllers.AccountController.Login (API) in 55.9944ms
2022-08-25T07:23:25.8344994+00:00   INFO    [Microsoft.AspNetCore.Routing.EndpointMiddleware]   [ExecutedEndpoint]  Executed endpoint 'API.Controllers.AccountController.Login (API)'
2022-08-25T07:23:25.8345334+00:00   INFO    [Microsoft.AspNetCore.Hosting.Diagnostics]  [2] Request finished HTTP/1.1 POST <my-server-addres>/api/account/login application/json 33 - 401 - text/plain;+charset=utf-8 57.0388ms
2022-08-25T07:23:28.2875810+00:00   INFO    [Microsoft.AspNetCore.Hosting.Diagnostics]  [1] Request starting HTTP/1.1 GET <my-server-addres>/api/server/logs - -
2022-08-25T07:23:28.2904668+00:00   INFO    [Microsoft.AspNetCore.Routing.EndpointMiddleware]   [ExecutingEndpoint] Executing endpoint 'API.Controllers.ServerController.GetLogs (API)'
2022-08-25T07:23:28.2915919+00:00   INFO    [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker]   [ControllerActionExecuting] Route matched with {action = "GetLogs", controller = "Server"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetLogs() on controller API.Controllers.ServerController (API).
2022-08-25T07:23:28.2920356+00:00   INFO    [Microsoft.EntityFrameworkCore.Infrastructure]  [Microsoft.EntityFrameworkCore.Infrastructure.ContextInitialized]   Entity Framework Core 6.0.7 initialized 'DataContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.7' with options: DetailedErrorsEnabled 
majora2007 commented 2 years ago

This was validated as working. So next release you will get your fix.

HerrFrutti commented 2 years ago

should this be fixed with the last release? Because I'm still having this issue...

majora2007 commented 2 years ago

It should be. Could you make sure you've updated and have done a hard refresh on your device?

Re-reading your issue, the first popup is not an error, but just saying that the previous page you were on when it loaded is no longer accessible, because your login expired, and hence it redirected you. Second just shows that the login is not correct.

The original issue that was fixed was old safari browsers couldn't load the app and didn't render well.

HerrFrutti commented 2 years ago

after clearing all browser data, it seems to work. Thanks!