-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Improve Teaching Merging + Email Management "
- Loading branch information
1 parent
49575e3
commit 23aa384
Showing
11 changed files
with
86 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ def omniauth_callback | |
Sentry.add_breadcrumb(crumb) | ||
Sentry.capture_message("Omniauth No User Found") | ||
session[:auth_data] = omniauth_info | ||
flash[:alert] = "We couldn't find an account for #{omniauth_info.email}. Please submit a new request. #{nyc_message}" | ||
flash[:alert] = "We couldn't find an account for #{omniauth_info.email}. Please submit a new request." | ||
redirect_to new_teacher_path | ||
end | ||
end | ||
|
@@ -52,14 +52,6 @@ def omniauth_failure | |
Sentry.add_breadcrumb(crumb) | ||
Sentry.capture_message("Omniauth Failure") | ||
redirect_to root_url, | ||
alert: "Login failed unexpectedly. Please reach out to [email protected] #{nyc_message} (#{params[:message]})" | ||
end | ||
|
||
private | ||
# Special warning for emails that end with @schools.nyc.gov | ||
def nyc_message | ||
return "" unless omniauth_info.email.downcase.ends_with?("@schools.nyc.gov") | ||
|
||
"Emails ending with @schools.nyc.gov are currently blocked by NYC DOE. Please try logging with Snap! or reach out to us to setup an alternate login method. Thanks!\n" | ||
alert: "Login failed unexpectedly. Please reach out to [email protected] (#{params[:message]})" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters