mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Get rid of flash hook and clean up passwords after registration.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class SessionsController < Devise::SessionsController
|
||||
def new
|
||||
flash[:notice] = "Welcome to #{controller_path.inspect} controller!"
|
||||
flash[:special] = "Welcome to #{controller_path.inspect} controller!"
|
||||
super
|
||||
end
|
||||
end
|
||||
@@ -7,7 +7,7 @@
|
||||
<body>
|
||||
<div id="container">
|
||||
<%- flash.each do |name, msg| -%>
|
||||
<%= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) %>
|
||||
<%= content_tag :div, msg, :id => "flash_#{name}" %>
|
||||
<%- end -%>
|
||||
|
||||
<% if user_signed_in? -%>
|
||||
|
||||
Reference in New Issue
Block a user