Skip to content

Commit 7a5c808

Browse files
authored
Update user.go
1 parent 4a03afc commit 7a5c808

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/user/user.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ func (u *User) BeforeUpdate() {
181181
u.MaxRepoCreation = -1
182182
}
183183

184-
// Organization does not need email
184+
// FIXME: this email doesn't need to be in lowercase, because the emails are mainly managed by the email table with lower_email field
185+
// This trick could be removed in new releases to display the user inputed email as-is.
185186
u.Email = strings.ToLower(u.Email)
186187
if !u.IsOrganization() {
187188
if len(u.AvatarEmail) == 0 {

0 commit comments

Comments
 (0)