Browse Source
adds nickname column to dummy app user Update feature specs with user nickname; add max login attempt spec regenerate schemamaster
10 changed files with 58 additions and 27 deletions
@ -1,2 +1,8 @@ |
|||||||
module ApplicationHelper |
module ApplicationHelper |
||||||
|
|
||||||
|
def render_flash |
||||||
|
flash.map do |name, message| |
||||||
|
content_tag(:p, message, class: "flash #{name}") |
||||||
|
end.join.html_safe |
||||||
|
end |
||||||
end |
end |
||||||
|
@ -1,5 +1,7 @@ |
|||||||
<h1>Your Personal Dashboard</h1> |
<h1>Your Personal Dashboard</h1> |
||||||
|
|
||||||
<p>Your email is <%= current_user.email %></p> |
<p>Hi <%= current_user.nickname %></p> |
||||||
|
|
||||||
<p>You will only be able to see this page after successfully completing two factor authentication</p> |
<p>Your registered email address is <%= current_user.email %></p> |
||||||
|
|
||||||
|
<p>You can only see this page after successfully completing two factor authentication</p> |
||||||
|
@ -0,0 +1,7 @@ |
|||||||
|
class AddNickanmeToUsers < ActiveRecord::Migration |
||||||
|
def change |
||||||
|
change_table :users do |t| |
||||||
|
t.column :nickname, :string, limit: 64 |
||||||
|
end |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue