summaryrefslogtreecommitdiffstats
path: root/model/user.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-07-15 11:20:39 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-07-15 11:20:39 -0400
commit942ae4c5278e0a3064ef08937063ec66a6a8e990 (patch)
tree595514b6619988c72250ac2bf924cc103887f948 /model/user.go
parentb339b5c982a336abcc0a1f1bc9ba68e447472228 (diff)
downloadchat-942ae4c5278e0a3064ef08937063ec66a6a8e990.tar.gz
chat-942ae4c5278e0a3064ef08937063ec66a6a8e990.tar.bz2
chat-942ae4c5278e0a3064ef08937063ec66a6a8e990.zip
Cleaning up old export code (#3601)
Diffstat (limited to 'model/user.go')
-rw-r--r--model/user.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/model/user.go b/model/user.go
index 4444352d3..bf6866b27 100644
--- a/model/user.go
+++ b/model/user.go
@@ -371,17 +371,6 @@ func (u *User) IsLDAPUser() bool {
return false
}
-func (u *User) PreExport() {
- u.Password = ""
- u.AuthData = new(string)
- *u.AuthData = ""
- u.LastActivityAt = 0
- u.LastPingAt = 0
- u.LastPasswordUpdate = 0
- u.LastPictureUpdate = 0
- u.FailedAttempts = 0
-}
-
// UserFromJson will decode the input and return a User
func UserFromJson(data io.Reader) *User {
decoder := json.NewDecoder(data)