aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/user.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/user.go b/db/user.go
index 7a0a32b..64ca6a6 100644
--- a/db/user.go
+++ b/db/user.go
@@ -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
84func SetUserStatus(user *User, status UserStatus) error {
85 user.Status = status
86
87 return DB.Update(user)
88}