Skip to content

Commit ac1ad82

Browse files
committed
revoke truncated user info.
1 parent 8591457 commit ac1ad82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

models/user.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ func (u *User) BeforeUpdate() {
196196
}
197197

198198
u.LowerName = strings.ToLower(u.Name)
199+
u.Location = base.TruncateString(u.Location, 255)
200+
u.Website = base.TruncateString(u.Website, 255)
201+
u.Description = base.TruncateString(u.Description, 255)
199202
}
200203

201204
// AfterLoad is invoked from XORM after filling all the fields of this object.

0 commit comments

Comments
 (0)