Commit 545df0313b559f403d444c60ee04f2838801c213

Authored by Rafael Manzo
Committed by Eduardo Silva Araújo
1 parent dd93449c
Exists in colab

[Colab] Removes debug print from RemoteUser sign in

app/controllers/users/omniauth_callbacks_controller.rb
... ... @@ -4,11 +4,8 @@ module Users
4 4 auth = request.env["omniauth.auth"]
5 5 user = User.find_or_create_by(email: auth.info.email, name: auth.info.name, provider: auth.provider, uid: auth.uid)
6 6  
7   - if user.valid?
8   - sign_in_and_redirect user
9   - else
10   - raise "Fuck you: #{user.errors.full_messages}"
11   - end
  7 + # Given colab works properly, since the user is always found or redirected, there is no chanche of an invalid user
  8 + sign_in_and_redirect user
12 9 end
13 10  
14 11 alias_method :RemoteUser, :all
... ...