Do not display the raw OpenID error in the UI (#5705)
Do not display the raw OpenID error in the UI (#5705)

* Do not display the raw OpenID error in the UI

If there are no `WHITELIST_URIS` or `BLACKLIST_URIS` set in the openid
section of the app.ini, it is possible that gitea can leak sensitive
information about the local network through the error provided by the
UI. This PR hides the error information and logs it.

Fix #4973

Signed-off-by: Andrew Thornton <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>

* Update auth_openid.go

Place error log within the `err != nil` branch.

Bwko/gitea,cez81/gitea,go-gitea/gitea,kubatyszko/gitea,kubatyszko/gitea,typeless/gitea,sapk-fork/gitea,lafriks/gitea,vdbt/gitea,vCaesar/gitea,typeless/gitea,typeless/gitea,typeless/gitea,Bwko/gitea,lafriks/gitea,sapk-fork/gitea,kubatyszko/gitea,vdbt/gitea,go-gitea/gitea,go-gitea/gitea,sapk-fork/gitea,cez81/gitea,vCaesar/gitea,sapk-fork/gitea,cez81/gitea,lafriks/gitea,Bwko/gitea