Add default bio value, to fix GitHub integration errors (#68)

* Change header name

* Add default bio value

* Remove default
This commit is contained in:
Geometrically 2020-10-03 12:11:36 -07:00 committed by GitHub
parent d7f9d5a66f
commit da654fdff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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(),
}