Fix account sign in on the PDS #4

merged
opened by willdot.net targeting main from willdot.net/pds-gatekeeper: fix/account-sign-in

This fixes https://tangled.org/@baileytownsend.dev/pds-gatekeeper/issues/3 as described in the comments

Tested by building the app locally, cross compiling for Linux and copying to my PDS server and running the app instead of the latest docker image.

When doing this I was able to access the /account/<did> page by signing in.

Changed files
+2 -1
src
+2 -1
src/oauth_provider.rs
···
pub struct SignInRequest {
pub username: String,
pub password: String,
-
pub remember: bool,
+
#[serde(skip_serializing_if = "Option::is_none")]
+
pub remember: Option<bool>,
pub locale: String,
#[serde(skip_serializing_if = "Option::is_none", rename = "emailOtp")]
pub email_otp: Option<String>,