sftpgo-mirror/httpd
Nicola Murino daac90c4e1
fix a potential race condition for pre-login and ext auth
hooks

doing something like this:

err = provider.updateUser(u)
...
return provider.userExists(username)

could be racy if another update happen before

provider.userExists(username)

also pass a pointer to updateUser so if the user is modified inside
"validateUser" we can just return the modified user without do a new
query
2021-01-05 09:50:22 +01:00
..
schema add REST API for the defender 2021-01-02 19:33:24 +01:00
api_defender.go add REST API for the defender 2021-01-02 19:33:24 +01:00
api_folder.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
api_maintenance.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
api_quota.go add sftpfs storage backend 2020-12-12 10:31:09 +01:00
api_user.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
api_utils.go add REST API for the defender 2021-01-02 19:33:24 +01:00
auth.go telemetry server: add optional https and authentication 2020-12-18 16:04:42 +01:00
httpd.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
httpd_test.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
internal_test.go add REST API for the defender 2021-01-02 19:33:24 +01:00
router.go add REST API for the defender 2021-01-02 19:33:24 +01:00
web.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00