Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
user can signup with email/pwd as alternative to openid
- Loading branch information
Kevin Edwards
authored and
Kevin Edwards
committed
Jan 8, 2009
1 parent
62992fb
commit 03c60cb
Showing
10 changed files
with
144 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class AddPasswordsToUsers < ActiveRecord::Migration | ||
|
||
def self.up | ||
add_column :users, :hashed_password, :string, :limit => 40 | ||
add_column :users, :salt, :string, :limit => 40 | ||
end | ||
|
||
def self.down | ||
remove_column :users, :hashed_password | ||
remove_column :users, :salt | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
= partial :_signin | ||
|
||
%br | ||
|
||
%p | ||
Welcome to Six Month Letter, the service that helps you keep on track with your life goals. | ||
|
||
%p | ||
Write yourself a letter. Speak to yourself in six months time. | ||
|
||
%p | ||
What should you have done? | ||
|
||
%p | ||
Where should you be? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%p | ||
Register using the form below | ||
|
||
- if @error | ||
%div{:class => "error"} | ||
= @error | ||
|
||
%form{:action => '/create_user', :method => "POST"} | ||
%label | ||
Your Email | ||
%input{:type => 'text', :name => 'email'} | ||
%br | ||
%label | ||
Your Password | ||
%input{:type => 'password', :name => 'password'} | ||
%input{:type => "submit", :value => "submit"} |