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