Display OAuth errors (#159)
This commit is contained in:
1 parent
5fa55dfbba
commit
be46304e23
1 file changed
+1
-1
@@ -140,7 +140,7 @@ func processLogin(ctx echo.Context) error {
|
||||
func oauthCallback(ctx echo.Context) error {
|
||||
user, err := gothic.CompleteUserAuth(ctx.Response(), ctx.Request())
|
||||
if err != nil {
|
||||
return errorRes(400, "Cannot complete user auth", err)
|
||||
return errorRes(400, "Cannot complete user auth: "+err.Error(), err)
|
||||
}
|
||||
|
||||
currUser := getUserLogged(ctx)
|
||||
|
||||
Reference in new issue
Block a user