-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch from errors to alerts so oauth-related flashes will show #362
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ def create | |
sign_in_and_redirect(:user, user) | ||
end | ||
else | ||
flash[:error] = service_route.capitalize + ' cannot be used to sign up on CodeMontage as no valid email address has been provided. Please add a public email address or sign up manually. If you already have an account, you can sign in and add ' + service_route.capitalize + ' from your profile.' | ||
flash[:alert] = service_route.capitalize + ' cannot be used to sign up on CodeMontage as no valid email address has been provided. Please add a public email address or sign up manually. If you already have an account, you can sign in and add ' + service_route.capitalize + ' from your profile.' | ||
redirect_to new_user_session_path | ||
end | ||
end | ||
|
@@ -95,11 +95,11 @@ def create | |
end | ||
end | ||
else | ||
flash[:error] = service_route.capitalize + ' returned invalid data for the user id.' | ||
flash[:alert] = service_route.capitalize + ' returned invalid data for the user id.' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [93/80] |
||
redirect_to new_user_session_path | ||
end | ||
else | ||
flash[:error] = 'Error while authenticating via ' + service_route.capitalize + '.' | ||
flash[:alert] = 'Error while authenticating via ' + service_route.capitalize + '.' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [88/80] |
||
redirect_to new_user_session_path | ||
end | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [309/80]
Unnecessary spacing detected.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.