]> git.openstreetmap.org Git - rails.git/commit
Improve flash message handling in users#new
authorTom Hughes <tom@compton.nu>
Mon, 6 May 2024 07:54:36 +0000 (08:54 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 6 May 2024 08:14:49 +0000 (09:14 +0100)
commit1874e5b1a2bd15bf165093dbaa147d5a9d8f898d
tree6638fd351a6706e72447d14da2af1b0155fca465
parent4965c19b7a8c96ab87b543af1fc36a1ad7514c09
Improve flash message handling in users#new

Only show the duplicate email message if we actually have errors
logged against the email field, and then show it as a warning.

In all other cases we show the generic informational hint about
social logins and pre-existing accounts.
app/controllers/users_controller.rb