mirror of
https://github.com/thomiceli/opengist.git
synced 2025-06-13 05:47:12 +02:00
Display OAuth errors (#159)
This commit is contained in:
@ -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