Commit ebd4f04a5e425fd0f0a9a8fc874a90488635bdd5

Authored by Weblate
2 parents 8f2aa3e1 1a854cf9

Merge remote-tracking branch 'origin/master'

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
plugins/remote_user/lib/remote_user_plugin.rb
@@ -48,8 +48,11 @@ class RemoteUserPlugin < Noosfero::Plugin @@ -48,8 +48,11 @@ class RemoteUserPlugin < Noosfero::Plugin
48 end 48 end
49 end 49 end
50 end 50 end
  51 + rescue ::ActiveRecord::RecordInvalid
  52 + session[:notice] = _('Could not create the remote user.')
  53 + render_404
51 rescue 54 rescue
52 - session[:notice] = _('Could not create the remote_user.') 55 + session[:notice] = _("Could not log in.")
53 render_404 56 render_404
54 end 57 end
55 end 58 end