umputun/remark42

Problematic logout doesn't show errors in the UI

Open

#1455 aperta il 31 lug 2022

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Go (432 fork)user submission
bugfrontendhelp wanted

Metriche repository

Star
 (5500 star)
Metriche merge PR
 (Merge medio 87g 10h) (18 PR mergiate in 30 g)

Descrizione

I run remark42 like that: ./remark42.darwin-arm64 server --secret=12345 --url=http://127.0.0.1:8080.

If I was logged in before running that version (with no auth providers) I see a normal comment screen:

If I push the "log out" button, http://127.0.0.1:8080/auth/logout?site=remark request is made with status code 400 which has the following answer:

{
    "error": "providers not defined"
}

The interface shows nothing. In the console, I see the following:

Erroring code:

Guida contributor