diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/user.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -80,3 +80,9 @@ func SetPassword(user *User, password string) error { | |||
80 | 80 | ||
81 | return DB.Update(user) | 81 | return DB.Update(user) |
82 | } | 82 | } |
83 | |||
84 | func SetUserStatus(user *User, status UserStatus) error { | ||
85 | user.Status = status | ||
86 | |||
87 | return DB.Update(user) | ||
88 | } | ||