noosfero | 2 new commits pushed to repository
Antonio Terceiro
gitlab at gitlab.com
Wed Mar 11 16:59:10 BRT 2015
Antonio Terceiro pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>
Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/0ae7f8f71eb955e6b0fe3fb0a210c5a83b76809f">0ae7f8f7</a> by Lucas Kanashiro
Fixed logout in RemoteUser plugin
Set current_user = nil when have no REMOTE_USER HTTP header.
Signed-off-by: Lucas Kanashiro <kanashiro.duarte at gmail.com>
Signed-off-by: Thiago Ribeiro <thiagitosouza at hotmail.com>
- - - - -
<a href="https://gitlab.com/noosfero/noosfero/commit/cb6fbc3869cd81d471dfc691521daf2ded515d4c">cb6fbc38</a> by Antonio Terceiro
Merge branch 'fix_logout_remote_user' into 'master'
Fix log out in RemoteUser plugin
Set current_user = nil when have no REMOTE_USER HTTP header.
See merge request !501
- - - - -
Changes:
=====================================
plugins/remote_user/lib/remote_user_plugin.rb
=====================================
--- a/plugins/remote_user/lib/remote_user_plugin.rb
+++ b/plugins/remote_user/lib/remote_user_plugin.rb
@@ -16,10 +16,7 @@ class RemoteUserPlugin < Noosfero::Plugin
user_data = request.env['HTTP_REMOTE_USER_DATA']
if remote_user.blank?
- if logged_in?
- self.current_user.forget_me
- reset_session
- end
+ self.current_user = nil
else
if user_data.blank?
remote_user_email = remote_user + '@remote.user'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150311/d5dd9f27/attachment.html>
More information about the Noosfero-dev
mailing list