Profile pictures can't be removed
Summary
Once a profile picture has been uploaded for an account, it can be replaced but not removed. There's no way to switch back to gravatar.com images.
Steps to reproduce
- Create an account w/ an email address available on gravatar.com
- The image from gravatar.com should show up eventually
- Edit your profile settings, upload a profile picture
- New image is shown for user
What is the current bug behavior?
There's no means to remove the uploaded image. One can simply replace it.
What is the expected correct behavior?
There should be an input (checkbox or else) to delete the currently assigned profile picture without uploading a new one. Doing that should reset the account to a gravatar image, if available.
Results of GitLab environment info
System information
System: Debian 7.11
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.6.6
Bundler Version:1.13.7
Rake Version: 10.5.0
Redis Version: 3.2.5
Git Version: 2.11.1
Sidekiq Version:4.2.7
GitLab information
Version: 9.1.0
Revision: c3f0f14
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://REDACTED
HTTP Clone URL: https://REDACTED/some-group/some-project.git
SSH Clone URL: git@REDACTED:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 5.0.2
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git