You've already forked AstralRinth
forked from didirus/AstralRinth
Add default bio value, to fix GitHub integration errors (#68)
* Change header name * Add default bio value * Remove default
This commit is contained in:
@@ -25,7 +25,7 @@ pub struct GitHubUser {
|
|||||||
pub avatar_url: String,
|
pub avatar_url: String,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub email: Option<String>,
|
pub email: Option<String>,
|
||||||
pub bio: String,
|
pub bio: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_github_user_from_token(
|
pub async fn get_github_user_from_token(
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ pub async fn auth_callback(
|
|||||||
name: user.name,
|
name: user.name,
|
||||||
email: user.email,
|
email: user.email,
|
||||||
avatar_url: Some(user.avatar_url),
|
avatar_url: Some(user.avatar_url),
|
||||||
bio: Some(user.bio),
|
bio: user.bio,
|
||||||
created: Utc::now(),
|
created: Utc::now(),
|
||||||
role: Role::Developer.to_string(),
|
role: Role::Developer.to_string(),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user