diff pkg/models/user.go @ 5500:f0c668bc4082 deactivate-users

Moved active login/nologin to triggers. Allow /user PATCH endpoint to modify the field.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 22 Sep 2021 12:02:03 +0200
parents 59cbd1b48c3a
children 6270951dda28
line wrap: on
line diff
--- a/pkg/models/user.go	Tue Sep 21 22:06:43 2021 +0200
+++ b/pkg/models/user.go	Wed Sep 22 12:02:03 2021 +0200
@@ -59,6 +59,7 @@
 		Email    *Email       `json:"email,omitempty"`
 		Country  *Country     `json:"country,omitempty"`
 		Reports  *bool        `json:"reports,omitempty"`
+		Active   *bool        `json:"active,omitempty"`
 		Extent   *BoundingBox `json:"extent,omitempty"`
 	}