mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
return gravatar with session
This commit is contained in:
1 parent
be87c4b281
commit
c0f74bad3d
2 files changed
+5
-1
No files matched your search
@@ -29,6 +29,7 @@ pub struct UserInfo {
|
||||
pub user_token: String,
|
||||
pub username: String,
|
||||
pub display_name: String,
|
||||
pub email_gravatar_hash: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
@@ -100,7 +101,8 @@ pub async fn session_info_handler(
|
||||
user_info = Some(UserInfo {
|
||||
user_token: session_data.user_token.clone(),
|
||||
username: session_data.username.to_string(),
|
||||
display_name: session_data.display_name.to_string()
|
||||
display_name: session_data.display_name.to_string(),
|
||||
email_gravatar_hash: session_data.email_gravatar_hash.to_string(),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ pub struct SessionUserRecord {
|
||||
pub display_name: String,
|
||||
pub email_address: String,
|
||||
pub email_confirmed: i8,
|
||||
pub email_gravatar_hash: String,
|
||||
pub profile_markdown: String,
|
||||
pub profile_rendered_html: String,
|
||||
pub user_role_slug: String,
|
||||
@@ -105,6 +106,7 @@ SELECT
|
||||
display_name,
|
||||
email_address,
|
||||
email_confirmed,
|
||||
email_gravatar_hash,
|
||||
profile_markdown,
|
||||
profile_rendered_html,
|
||||
user_role_slug,
|
||||
|
||||
Reference in new issue
Block a user