Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
5499:a30b6c6541e0 | 5500:f0c668bc4082 |
---|---|
57 Role *Role `json:"role,omitempty"` | 57 Role *Role `json:"role,omitempty"` |
58 Password *string `json:"password,omitempty"` | 58 Password *string `json:"password,omitempty"` |
59 Email *Email `json:"email,omitempty"` | 59 Email *Email `json:"email,omitempty"` |
60 Country *Country `json:"country,omitempty"` | 60 Country *Country `json:"country,omitempty"` |
61 Reports *bool `json:"reports,omitempty"` | 61 Reports *bool `json:"reports,omitempty"` |
62 Active *bool `json:"active,omitempty"` | |
62 Extent *BoundingBox `json:"extent,omitempty"` | 63 Extent *BoundingBox `json:"extent,omitempty"` |
63 } | 64 } |
64 | 65 |
65 // PWResetUser is send to request a password reset for a user. | 66 // PWResetUser is send to request a password reset for a user. |
66 PWResetUser struct { | 67 PWResetUser struct { |