You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allow the either username or email is empty which returns from oauth 2.0 provider, but require both to be present when automatically registering a new user
ErrCannotRetrieveUserInfo=NewNormalError(NormalSubcategoryOAuth2, 9, http.StatusBadRequest, "cannot retrieve user info from oauth2 provider")
19
19
ErrOAuth2UserAlreadyBoundToAnotherUser=NewNormalError(NormalSubcategoryOAuth2, 10, http.StatusBadRequest, "oauth2 user already bound to another user")
20
+
ErrOAuth2UserNameAndEmailEmpty=NewNormalError(NormalSubcategoryOAuth2, 11, http.StatusBadRequest, "user name and email from oauth2 provider are both empty")
21
+
ErrOAuth2UserNameEmpty=NewNormalError(NormalSubcategoryOAuth2, 12, http.StatusBadRequest, "user name from oauth2 provider is empty")
22
+
ErrOAuth2EmailEmpty=NewNormalError(NormalSubcategoryOAuth2, 13, http.StatusBadRequest, "email from oauth2 provider is empty")
23
+
ErrOAuth2UserNameEmptyCannotRegister=NewNormalError(NormalSubcategoryOAuth2, 14, http.StatusBadRequest, "user name from oauth2 provider is empty, cannot register new user")
24
+
ErrOAuth2EmailEmptyCannotRegister=NewNormalError(NormalSubcategoryOAuth2, 15, http.StatusBadRequest, "email from oauth2 provider is empty, cannot register new user")
0 commit comments