Skip to content

Commit

Permalink
Updated 3rd party authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
trivektor committed Apr 13, 2011
1 parent fa73ed4 commit 2262666
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class User < ActiveRecord::Base

def self.create_from_hash!(hash)
logger.info hash['user_info']
user = User.new(:username => hash['user_info']['nickname'], :email => hash['user_info']['email'])
user = User.new(:username => Time.now.to_i, :email => hash['user_info']['email'])
user.save(:validate => false)
user.profile = Profile.create(:first_name => hash['user_info']['first_name'], :last_name => hash['user_info']['last_name'])
user
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Killer Resume Builder - <%= @title_for_layout %></title>
<title>Rails Resume Builder - <%= @title_for_layout %></title>
<%= stylesheet_link_tag [
"master.css",
"markitup.css",
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/signup.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Killer Resume Builder - Signup</title>
<title>Rails Resume Builder - Signup</title>
<%= stylesheet_link_tag "master.css" %>
<%= csrf_meta_tag %>
</head>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/theme_selector.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Resume Builder - Theme Selector</title>
<title>Rails Resume Builder - Theme Selector</title>

<%= stylesheet_link_tag [
"master.css",
Expand Down

0 comments on commit 2262666

Please sign in to comment.