mirror of
https://github.com/thomiceli/opengist.git
synced 2025-05-14 00:02:10 +02:00
Display OAuth errors (#159)
This commit is contained in:
parent
5fa55dfbba
commit
be46304e23
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user