Closed SammySteiner closed 4 weeks ago
When entering an email that is not in the database into the forgot password form, the application errors out:
asdfasdf@adsf.asdf
Chrome
app-rails-1 | 13:42:46 web.1 | Started POST "/users/forgot-password" for 192.168.65.1 at 2024-06-27 13:42:46 +0000 app-rails-1 | 13:42:46 web.1 | Processing by Users::PasswordsController#send_reset_password_instructions as TURBO_STREAM app-rails-1 | 13:42:46 web.1 | Parameters: {"authenticity_token"=>"[FILTERED]", "users_forgot_password_form"=>"[FILTERED]", "commit"=>"Send code", "locale"=>"en"} app-rails-1 | 13:42:46 web.1 | Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms | Allocations: 1894) app-rails-1 | 13:42:46 web.1 | app-rails-1 | 13:42:46 web.1 | app-rails-1 | 13:42:46 web.1 | app-rails-1 | 13:42:46 web.1 | TypeError (no implicit conversion of nil into String): app-rails-1 | 13:42:46 web.1 | app-rails-1 | 13:42:46 web.1 | app/adapters/auth/cognito_adapter.rb:268:in `+' app-rails-1 | 13:42:46 web.1 | app/adapters/auth/cognito_adapter.rb:268:in `get_secret_hash' app-rails-1 | 13:42:46 web.1 | app/adapters/auth/cognito_adapter.rb:51:in `forgot_password' app-rails-1 | 13:42:46 web.1 | app/services/auth_service.rb:10:in `forgot_password' app-rails-1 | 13:42:46 web.1 | app/controllers/users/passwords_controller.rb:20:in `send_reset_password_instructions' app-rails-1 | 13:42:46 web.1 | app/controllers/application_controller.rb:14:in `switch_locale'
My bad, the env variables changed and I didn't read the error closely enough.
What happened?
When entering an email that is not in the database into the forgot password form, the application errors out:![image](https://github.com/navapbc/template-application-rails/assets/25465464/09daa0de-6ba7-4828-873f-c44d63b15283)
Steps to reproduce
asdfasdf@adsf.asdf
What browsers are you seeing the problem on?
Chrome
Relevant log output