mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-22 20:42:40 +00:00
Display OAuth errors (#159)
This commit is contained in:
parent
5fa55dfbba
commit
be46304e23
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue