ensure CurrentUser is reset before requests are processed, disable api keys

This commit is contained in:
r888888888
2013-04-17 13:31:38 -07:00
parent 60617c7c81
commit 842b4b64f1
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
class ApplicationController < ActionController::Base
protect_from_forgery
helper :pagination
before_filetr :reset_current_user
before_filter :set_current_user
after_filter :reset_current_user
before_filter :set_title

View File

@@ -112,7 +112,7 @@
<% if CurrentUser.user.id == user.id %>
<tr>
<th>API Key</th>
<td><%= CurrentUser.user.bcrypt_cookie_password_hash %></td>
<td><p>Temporarily disabled</p><%#= CurrentUser.user.bcrypt_cookie_password_hash %></td>
</tr>
<% end %>
</table>