| @@ 129-129 (lines=1) @@ | ||
| 126 | end |
|
| 127 | ||
| 128 | # If using invitation registration method, make sure user is invited |
|
| 129 | return redirect_to root_path, flash: { alert: I18n.t("registration.invite.no_invite") } unless passes_invite_reqs |
|
| 130 | ||
| 131 | user = User.from_omniauth(@auth) |
|
| 132 | ||
| @@ 43-43 (lines=1) @@ | ||
| 40 | render(:new) && return unless valid_user_or_captcha |
|
| 41 | ||
| 42 | # Redirect to root if user token is either invalid or expired |
|
| 43 | return redirect_to root_path, flash: { alert: I18n.t("registration.invite.fail") } unless passes_invite_reqs |
|
| 44 | ||
| 45 | # User has passed all validations required |
|
| 46 | @user.save |
|