Implements username authentication
It's now possible to login with either username or email That's necessary to be backward compatible for iChain login
This commit is contained in:
parent
aeb23ba914
commit
15c6ed127f
8 changed files with 44 additions and 18 deletions
6
db/migrate/20141103132913_add_username_to_users.rb
Normal file
6
db/migrate/20141103132913_add_username_to_users.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddUsernameToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :username, :string
|
||||
add_index :users, :username, unique: true
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue