| @@ 170-172 (lines=3) @@ | ||
| 167 | @user = User.where(uid: params[:user_uid]).includes(:roles).first |
|
| 168 | end |
|
| 169 | ||
| 170 | def ensure_unauthenticated |
|
| 171 | redirect_to current_user.main_room if current_user && params[:old_twitter_user_id].nil? |
|
| 172 | end |
|
| 173 | ||
| 174 | # Verify that GreenLight is configured to allow user signup. |
|
| 175 | def check_user_signup_allowed |
|
| @@ 145-147 (lines=3) @@ | ||
| 142 | redirect_to root_path unless Rails.configuration.allow_user_signup |
|
| 143 | end |
|
| 144 | ||
| 145 | def ensure_unauthenticated |
|
| 146 | redirect_to current_user.main_room if current_user && params[:old_twitter_user_id].nil? |
|
| 147 | end |
|
| 148 | ||
| 149 | def session_params |
|
| 150 | params.require(:session).permit(:email, :password) |
|