You've already forked AstralRinth
forked from didirus/AstralRinth
Fix another GitHub OAuth Bug, allow users to register with null names. (#69)
* Change header name * Add default bio value * Remove default * Make name null * Run prepare
This commit is contained in:
@@ -4,7 +4,7 @@ pub struct User {
|
||||
pub id: UserId,
|
||||
pub github_id: Option<i64>,
|
||||
pub username: String,
|
||||
pub name: String,
|
||||
pub name: Option<String>,
|
||||
pub email: Option<String>,
|
||||
pub avatar_url: Option<String>,
|
||||
pub bio: Option<String>,
|
||||
@@ -31,7 +31,7 @@ impl User {
|
||||
self.id as UserId,
|
||||
self.github_id,
|
||||
&self.username,
|
||||
&self.name,
|
||||
self.name.as_ref(),
|
||||
self.email.as_ref(),
|
||||
self.avatar_url.as_ref(),
|
||||
self.bio.as_ref(),
|
||||
|
||||
Reference in New Issue
Block a user