store user info after login

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-06-21 23:58:13 +08:00
parent 23389ef140
commit 8dd218235d
5 changed files with 54 additions and 9 deletions

View File

@@ -822,7 +822,11 @@ pub fn account_auth_cancel() {
#[cfg(feature = "flutter")]
pub fn account_auth_result() -> String {
serde_json::to_string(&account::OidcSession::get_result()).unwrap_or_default()
let mut auth_result = account::OidcSession::get_result();
if let Some(auth) = auth_result.auth_body.as_mut() {
auth.user.ser_store_local = false;
}
serde_json::to_string(&auth_result).unwrap_or_default()
}
#[cfg(feature = "flutter")]