| @@ 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 |
|
| @@ 59-61 (lines=3) @@ | ||
| 56 | end |
|
| 57 | end |
|
| 58 | ||
| 59 | def ensure_unauthenticated_except_twitter |
|
| 60 | redirect_to current_user.main_room if current_user && params[:old_twitter_user_id].nil? |
|
| 61 | end |
|
| 62 | ||
| 63 | # Logs current user out of GreenLight. |
|
| 64 | def logout |
|