mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-14 03:41:51 +02:00
Disable Gravatar (#37)
* Disable Gravatar * Lowercase emails * Add migration
This commit is contained in:
@ -37,7 +37,7 @@ func emailProcess(ctx echo.Context) error {
|
||||
hash = fmt.Sprintf("%x", md5.Sum([]byte(strings.ToLower(strings.TrimSpace(email)))))
|
||||
}
|
||||
|
||||
user.Email = email
|
||||
user.Email = strings.ToLower(email)
|
||||
user.MD5Hash = hash
|
||||
|
||||
if err := user.Update(); err != nil {
|
||||
|
Reference in New Issue
Block a user