Commit 5b9c4f48 authored by Mike Greiling's avatar Mike Greiling

properly escape username validation error message flash

parent 5c6d3a99
......@@ -2,5 +2,6 @@
:plain
new Flash("Username successfully changed", "notice")
- else
- error = @user.errors.full_messages.first
:plain
new Flash("Username change failed - #{@user.errors.full_messages.first}", "alert")
new Flash("Username change failed - #{escape_javascript error.html_safe}", "alert")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment