| @@ 199-199 (lines=1) @@ | ||
| 196 | return redirect_to root_path, flash: { alert: I18n.t("registration.banned.fail") } if check_auth_deleted |
|
| 197 | ||
| 198 | # If using invitation registration method, make sure user is invited |
|
| 199 | return redirect_to root_path, flash: { alert: I18n.t("registration.invite.no_invite") } unless passes_invite_reqs |
|
| 200 | ||
| 201 | user = User.from_omniauth(@auth) |
|
| 202 | ||
| @@ 42-42 (lines=1) @@ | ||
| 39 | render("sessions/new") && return unless valid_user_or_captcha |
|
| 40 | ||
| 41 | # Redirect to root if user token is either invalid or expired |
|
| 42 | return redirect_to root_path, flash: { alert: I18n.t("registration.invite.fail") } unless passes_invite_reqs |
|
| 43 | ||
| 44 | # User has passed all validations required |
|
| 45 | @user.save |
|