Commit 67985f7ecde56270f997241e8ca94a04ed8aa13c

Authored by Rafael Manzo
1 parent 4bcc05c9

[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
... ...