]> source.dussan.org Git - gitea.git/commit
Respond with a 401 on git push when password isn't changed yet (#20026)
authorWim <wim@42.be>
Sun, 19 Jun 2022 19:23:00 +0000 (21:23 +0200)
committerGitHub <noreply@github.com>
Sun, 19 Jun 2022 19:23:00 +0000 (20:23 +0100)
commite91229eefbd09fecaebd0e058c3bfe7612a0bc61
tree8b301a4cb0538d7a85ab01eb3194ac9eef12f8f7
parent62104b4896f2f443da13b834d0111e1378134ac3
Respond with a 401 on git push when password isn't changed yet (#20026)

If the user-agent starts with git and user must change password but
hasn't return a 401 with the message.

It must be a 401, git doesn't seem to show the contents of the error message
when we return a 403

Fixes #19090
modules/context/auth.go