add twitter and google oauth login

This commit is contained in:
Zachary Chai
2016-10-17 15:06:11 -04:00
parent 0d73a77f1f
commit 3eeaacc6f4
6 changed files with 57 additions and 0 deletions

View File

@ -33,3 +33,13 @@
<div id="landing_page_footer_oauth_append">
<p>You can have a personal URL (with recordings) by signing in below</p>
</div>
<% if current_user.nil? %>
<ul>
<li><%= link_to 'Twitter', '/auth/twitter' %></li>
<li><%= link_to 'Google', '/auth/google' %></li>
</ul>
<% else %>
<div>Hello <%= current_user.name %></div>
<%= link_to 'Logout', '/logout' %>
<% end %>