add username for mock credentials of openid in development

This commit is contained in:
Stella 2014-11-30 00:08:56 +02:00
parent 1edb4bff9e
commit 0a58301b66
2 changed files with 7 additions and 3 deletions

View file

@ -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