diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-05-11 13:57:29 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-05-11 13:57:29 +0200 |
commit | 2da5b12c31074591eaf16929b760322b98f189e8 (patch) | |
tree | 407b699688edddca381ca80e5ecea9458d748cc1 /db | |
parent | 299b6b6d9fb879c06e675ef240f361348629ff6c (diff) | |
download | Front-2da5b12c31074591eaf16929b760322b98f189e8.tar.gz Front-2da5b12c31074591eaf16929b760322b98f189e8.tar.zst Front-2da5b12c31074591eaf16929b760322b98f189e8.zip |
Mails.
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 | } | ||