refactor: echo the auth cookie back if any exist

This commit is contained in:
Derrick Hammer 2024-03-18 17:03:17 -04:00
parent 66f73d1a53
commit 040c662826
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ func (a AccountAPI) passwordResetConfirm(jc jape.Context) {
}
func (a AccountAPI) ping(jc jape.Context) {
account.EchoAuthCookie(jc, a.Name())
jc.Encode(&PongResponse{
Ping: "pong",
})