diff --git a/plugins/remote_user/lib/remote_user_plugin.rb b/plugins/remote_user/lib/remote_user_plugin.rb index 7160e1d..5e013df 100644 --- a/plugins/remote_user/lib/remote_user_plugin.rb +++ b/plugins/remote_user/lib/remote_user_plugin.rb @@ -48,8 +48,11 @@ class RemoteUserPlugin < Noosfero::Plugin end end end + rescue ::ActiveRecord::RecordInvalid + session[:notice] = _('Could not create the remote user.') + render_404 rescue - session[:notice] = _('Could not create the remote_user.') + session[:notice] = _("Could not log in.") render_404 end end -- libgit2 0.21.2