Merge pull request #555 from differentreality/mock_credentials
add username for mock credentials of openid in development
This commit is contained in:
commit
a52918c273
2 changed files with 7 additions and 3 deletions
|
|
@ -106,6 +106,7 @@ class User < ActiveRecord::Base
|
|||
if user.new_record?
|
||||
user.email = auth.info.email
|
||||
user.name = auth.info.name
|
||||
user.username = auth.info.username
|
||||
user.password = Devise.friendly_token[0, 20]
|
||||
user.skip_confirmation!
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue