mirror of
https://github.com/wahyd4/loginsrv.git
synced 2026-08-09 04:46:29 +10:00
avoid panic in case of invalid repons from google
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ var providerGoogle = Provider{
|
||||
}
|
||||
|
||||
if len(gu.Emails) == 0 {
|
||||
return model.UserInfo{}, "", fmt.Errorf("invalid google response: no email address returned.", err)
|
||||
return model.UserInfo{}, "", fmt.Errorf("invalid google response: no email address returned.")
|
||||
}
|
||||
|
||||
return model.UserInfo{
|
||||
|
||||
Reference in New Issue
Block a user