Commit 09f67f46068b816de78c2c22be43b05647bced85

Authored by Leandro Santos
1 parent 197fd5a0

put the correct exception

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/noosfero/api/session.rb
... ... @@ -31,7 +31,7 @@ module Noosfero
31 31 post "/login" do
32 32 begin
33 33 user ||= User.authenticate(params[:login], params[:password], environment)
34   - rescue NoosferoExceptions::UserNotActivated => e
  34 + rescue User::UserNotActivated => e
35 35 render_api_error!(e.message, 401)
36 36 end
37 37  
... ...