aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorjloup <jeanloup.jamet@gmail.com>2018-05-11 13:57:29 +0200
committerjloup <jeanloup.jamet@gmail.com>2018-05-11 13:57:29 +0200
commit2da5b12c31074591eaf16929b760322b98f189e8 (patch)
tree407b699688edddca381ca80e5ecea9458d748cc1 /db
parent299b6b6d9fb879c06e675ef240f361348629ff6c (diff)
downloadFront-2da5b12c31074591eaf16929b760322b98f189e8.tar.gz
Front-2da5b12c31074591eaf16929b760322b98f189e8.tar.zst
Front-2da5b12c31074591eaf16929b760322b98f189e8.zip
Mails.
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}