fix mail & author

This commit is contained in:
Andreas Stephanides
2013-12-10 22:36:50 +01:00
parent 4e1df9ff08
commit 085695c632
2 changed files with 4 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ logger.debug auth.to_s
user= User.create(name:auth.extra.raw_info.uid.first,
provider:auth.provider,
uid:auth.extra.raw_info.uid.first,
email:auth.extra.raw_info.uid.first.to_s+"@fet.at",
email:auth.extra.raw_info.mail.first.to_s,
password:Devise.friendly_token[0,20])
user.add_role("fetuser")
logger.debug(auth.extra.raw_info.to_s)