Errors weren't showing before, which kept users from seeing helpful information about having a public email address on GitHub and valuable feedback that their login attempt has occurred.
I can't screenshot this change because I don't have a GitHub account that replicates the login error, but testing flashes in the dashboard verified that flash[:error] does not show a result, while flash[:alert] shows up in red at the top of the page.
The other option was to add flash[:error] to the application layout, but it doesn't have the styling that alerts do, so this seemed like the better option.
This fix is related to #288. The existing error messages have information about needing a public email address on GitHub, but they are not showing up to users because they're not flashed appropriately.
Errors weren't showing before, which kept users from seeing helpful information about having a public email address on GitHub and valuable feedback that their login attempt has occurred.
I can't screenshot this change because I don't have a GitHub account that replicates the login error, but testing flashes in the dashboard verified that
flash[:error]
does not show a result, whileflash[:alert]
shows up in red at the top of the page.The other option was to add
flash[:error]
to the application layout, but it doesn't have the styling that alerts do, so this seemed like the better option.