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