fix: password_complexity check must use a post verb
This commit is contained in:
parent
7603b7c1f1
commit
7d48c294d6
2 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ Rails.application.routes.draw do
|
||||||
get 'logout' => 'users/sessions#logout'
|
get 'logout' => 'users/sessions#logout'
|
||||||
end
|
end
|
||||||
|
|
||||||
get 'password_complexity' => 'password_complexity#show', as: 'show_password_complexity'
|
post 'password_complexity' => 'password_complexity#show', as: 'show_password_complexity'
|
||||||
get 'check_email' => 'email_checker#show', as: 'show_email_suggestions'
|
get 'check_email' => 'email_checker#show', as: 'show_email_suggestions'
|
||||||
|
|
||||||
resources :targeted_user_links, only: [:show]
|
resources :targeted_user_links, only: [:show]
|
||||||
|
|
|
@ -6,7 +6,7 @@ describe PasswordComplexityController, type: :controller do
|
||||||
{ user: { password: 'motDePasseTropFacile' } }
|
{ user: { password: 'motDePasseTropFacile' } }
|
||||||
end
|
end
|
||||||
|
|
||||||
subject { get :show, format: :turbo_stream, params: params }
|
subject { post :show, format: :turbo_stream, params: params }
|
||||||
|
|
||||||
it 'computes a password score' do
|
it 'computes a password score' do
|
||||||
subject
|
subject
|
||||||
|
|
Loading…
Reference in a new issue